File waitfornm of Package preload

#!/bin/bash
### BEGIN INIT INFO
# Provides:                   waitfornm
# Required-Start:             $remote_fs
# Should-Start:               $network
# Required-Stop:              $remote_fs
# Should-Stop:                $null
# Default-Start:              5
# Default-Stop:               
# Short-Description: delays network services till the network is brought up from desktop
# Description:  delays network

### END INIT INFO

. /etc/rc.status
. /etc/sysconfig/network/config

case "$1" in
        start)
		if test "$NETWORKMANAGER" = "yes"; then
 	           nm-online 25
                fi
		rc_status -v
		;;
	stop)   
		rc_status -v
		;;
	try-restart)
	        $0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset        # Not running is not a failure.
		fi
		rc_status
		;;
	restart)
		$0 stop
		$0 start
		rc_status
		;;
	force-reload|reload)
		rc_status -v
		;;
	status)
		rc_status -v
		;;
	*)
		echo "Usage: $0" \
		     "{start|stop|status|try-restart|restart|force-reload|reload}"
		exit 1
		;;
esac
rc_exit
openSUSE Build Service is sponsored by