Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 047d82c1bb63880beff209aa9ac8e9da > files > 30

linuxconf-1.33r1-1mdk.src.rpm

#!/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