1
0
Files
irix-657m-src/eoe/cmd/initpkg/reboot.sh
2022-09-29 17:59:04 +03:00

24 lines
327 B
Bash

#! /sbin/sh -e
#Tag 0x00000800
# Reboot the system--take it down and let it come back up
#
# $Revision: 1.11 $"
if test -n "$REMOTEHOST"; then
echo "Reboot `hostname -s`? \c"
read reply
case "$reply" in
[yY]*)
;;
*)
echo "'Reboot' cancelled."
exit 0
;;
esac
fi
/etc/shutdown -y -g0 -i6
sleep 10 2> /dev/null