[629] in SIPB_Linux_Development
/etc/athena/reactivate
daemon@ATHENA.MIT.EDU (jweiss@MIT.EDU)
Fri Jul 8 16:41:45 1994
From: jweiss@MIT.EDU
Date: Fri, 8 Jul 1994 16:43:38 -0400
To: linux-dev@MIT.EDU
Cc: jweiss@MIT.EDU, rcaileff@MIT.EDU
I'd like to see the following changes made to reactivate.
The first one seems like it will cause the right thing to happen more
often than the current way. (currently the zhm never gets reset.)
The second change fixes a bug. Currently if /tmp and /etc/ are
ondifferent partitions the X socket will be removed, because the
directory cant be moved across filesystems.
Note that I haven't actually tested these yet, so you should makesure
I( didn't do anything really stupid, before installing them.
*** /etc/athena/reactivate Thu Jan 6 19:45:57 1994
--- /u1/home/jweiss/reactivate Fri Jul 8 16:35:22 1994
***************
*** 39,47 ****
/bin/athena/fsid $quiet -p -a
# Tell the Zephyr hostmanager to reset state
! #if [ -f /etc/athena/zhm.pid ] ; then
! # kill -HUP `/bin/cat /etc/athena/zhm.pid`
! #fi
# Clean temporary areas (including temporary home directories)
case "${SYSTEM}" in
--- 39,47 ----
/bin/athena/fsid $quiet -p -a
# Tell the Zephyr hostmanager to reset state
! if [ -f /etc/athena/zhm.pid -a "${ZCLIENT}" = "true" ] ; then
! kill -HUP `/bin/cat /etc/athena/zhm.pid`
! fi
# Clean temporary areas (including temporary home directories)
case "${SYSTEM}" in
***************
*** 57,69 ****
/bin/rm -f /usr/tmp/ps_data
;;
LINUX)
# Be very careful about erasing dotfiles in /tmp!
# Do not lose /tmp/.X0-lock or the directory /tmp/.X11-unix
! mv /tmp/.X0-lock /etc/X0-lock
! mv /tmp/.X11-unix /etc/X11-unix
! /bin/rm -rf /tmp/* /tmp/.??*
! /bin/mv /etc/X0-lock /tmp/.X0-lock
! /bin/mv /etc/X11-unix /tmp/.X11-unix
;;
*)
/bin/mv /tmp/.X11-unix /tmp/../.X11-unix
--- 57,70 ----
/bin/rm -f /usr/tmp/ps_data
;;
LINUX)
+ /bin/rm -rf /tmp/*
# Be very careful about erasing dotfiles in /tmp!
# Do not lose /tmp/.X0-lock or the directory /tmp/.X11-unix
! mv /tmp/.X0-lock /tmp/X0-lock
! mv /tmp/.X11-unix /tmp/X11-unix
! /bin/rm -rf /tmp/.??*
! /bin/mv /tmp/X0-lock /tmp/.X0-lock
! /bin/mv /tmp/X11-unix /tmp/.X11-unix
;;
*)
/bin/mv /tmp/.X11-unix /tmp/../.X11-unix