head     1.2;
branch   ;
access   ;
symbols  ;
locks    ;
comment  @@;


1.2
date     91.08.26.09.19.47;  author bin;  state Exp;
branches ;
next     1.1;

1.1
date     91.02.05.15.30.37;  author root;  state Exp;
branches ;
next     ;


desc
@copied form 310 ship disks
@


1.2
log
@changes by stevesf
@
text
@: /etc/shutdown 7/11/91
: Take the system to single user mode.
: Unmount devices mounted by /etc/rc.

/etc/wall <<EOF
System going down!
EOF

/bin/echo -n 'Do you wish to shut the system down? '
read ans

case $ans in
y|Y|yes|YES)
	cd /
	/etc/umount.all
	/bin/echo 'Wait for the # prompt on the console.'
	/bin/echo 'Then type "sync" before rebooting or turning off your computer.'
	/bin/sync
	exec /bin/kill -1 1
	;;

*)
	/bin/echo 'System remaining multi-user.  DO NOT POWER OFF!'
	/bin/sync
	;;
esac

: end of /etc/shutdown
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
: /etc/shutdown 4/5/90
d14 1
d17 1
a17 1
	/bin/echo 'Then type "sync" before rebooting.'
d27 2
@
