#!/bin/sh # Local system initialization script. Put any local startup # commands here. If you have anything that needs to be run # at shutdown time, make an /etc/rc.d/rc.local_shutdown # script and put those commands in there. printf "\033[1;37mrc.local.shutdown: (shutdown local settings - outputs logged.)\033[0m\n" # If possible, log events in /var/log/messages.log: if [ -f /var/run/syslogd.pid -a -x /usr/bin/logger ]; then LOGGER=/usr/bin/logger else # otherwise output to stdout/stderr: LOGGER=$(which cat) fi if [ -x /etc/rc.d/rc.hal ]; then /etc/rc.d/rc.hal stop fi sleep 1 if [ -x /etc/rc.d/rc.dbus ]; then /etc/rc.d/rc.dbus stop | $LOGGER fi printf "\033[1;32mrc.local: Finished & exiting.\033[0m\n" # EOF