2 ################################################################################
5 # Description: A script to restart a system. Used for at jobs mainly.
6 # Author: Andrew@DeFaria.com
7 # Created: Wed Apr 16 14:14:17 PDT 1997
11 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
13 ################################################################################
14 # Set me to command name
18 adm_base=${adm_base:-$HOME/adm}
21 adm_fpath=${adm_fpath:-$adm_base/functions}
26 # Who do notify about the restart
27 notify=${notify:-$LOGNAME}
30 error "This script must be run as root" 1
33 message="Restarting $(hostname) ($(uname -s)) via $me"
35 #mailx -s "$message" $notify <<!EOF
41 if [ $(uname -s) = "HP-UX" ]; then
44 /etc/shutdown -yg 0 -i 6