version 1.515, 2017/08/21 21:24:11 |
version 1.516, 2017/08/28 06:56:54 |
|
|
[[ -n $_suffix ]] || return 1 |
[[ -n $_suffix ]] || return 1 |
|
|
if [[ -f /etc/rc.$_suffix ]]; then |
if [[ -f /etc/rc.$_suffix ]]; then |
|
echo "running rc.$_suffix" |
mv /etc/rc.$_suffix /etc/rc.$_suffix.run |
mv /etc/rc.$_suffix /etc/rc.$_suffix.run |
. /etc/rc.$_suffix.run 2>&1 | tee /dev/tty | |
. /etc/rc.$_suffix.run 2>&1 | tee /dev/tty | |
mail -Es "$(hostname) rc.$_suffix output" root >/dev/null |
mail -Es "$(hostname) rc.$_suffix output" root >/dev/null |