File boot.network-autoconfig of Package network-autoconfig

#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          boot.network-autoconfig
# Required-Start:
# Required-Stop:     $null
# Should-Start:      $local_fs boot.ipconfig
# Should-Stop:       $null
# Default-Start:     B
# Default-Stop:
# X-UnitedLinux-Default-Enabled: yes
# Short-Description: Find a connected eth interface and create an ifcfg for it
# Description:       Find a connected eth interface and create an ifcfg for it
### END INIT INFO

. /etc/rc.status

case "$1" in
	start)
		echo -n "Network autoconfig: "
		/usr/sbin/network-autoconfig >> /var/log/network-autoconfig 2>&1
		rc_status $status -r -v
		chkconfig boot.network-autoconfig off
		;;
	stop)
		rc_status -v
		;;
	restart)
		rc_status -v
		;;
	status)
		rc_status -v
		;;
	reload)
		rc_status -v
		;;
	force-reload)
		rc_status -v
		;;
	*)
		echo "Usage: $0 {start|stop|restart|status|reload|force-reload}"
		exit 1
		;;
esac
rc_exit