#!/bin/bash # # linuxconf Hook to allow linuxconf to put into place any # linuxconf-specific policies. # # chkconfig: 2345 99 00 # description: Linuxconf will sometimes arrange to perform various tasks at \ # boot-time to maintain the system configuration. # Source the function library. . /etc/init.d/functions RETVAL=0 # See how we were called. case "$1" in start) if [ -x /sbin/linuxconf -a -x /sbin/netconf ] ; then action "Running Linuxconf hooks: " /sbin/netconf --S99linuxconf RETVAL=$? [ "$RETVAL" = 0 ] && touch /var/lock/subsys/linuxconf fi ;; stop) # ignore rm -f /var/lock/subsys/linuxconf ;; *) echo $"Usage: $0 {start|stop}" RETVAL=1 esac exit $RETVAL