home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #introduced v0.9.8
- #called from /root/.fvwm95rc, .jwmrc at shutdown.
-
- echo -n "poweroff" > /tmp/wmexitmode.txt
- sync
- #PSLIST="`ps`"
- #kill `echo "$PSLIST" |grep "X "|grep -v "grep"|sed "s/^\ *//"|sed "s/ .*$//"|head -n 1`
- #exec killall X
- killall X #default is SIGTERM.
- sleep 1 #v1.0.7
- exec killall -9 X #v1.0.7 make sure X is killed.
-
- #after exit from X, there is a return to /usr/X11R6/bin/xwin,
- #which reads /tmp/wmexitmode.txt.
-