Blame SOURCES/dund.init

19062e
#!/bin/sh
19062e
19062e
# chkconfig:	- 26 89
19062e
19062e
### BEGIN INIT INFO
19062e
# Required-Start: bluetooth
19062e
# Default-Start: 
19062e
# Short-Description: Bluetooth Dial-Up-Networking Daemon.
19062e
# Description: Bluetooth Dial-Up-Networking Daemon. Provides PPP over RFCOMM
19062e
# services.
19062e
### END INIT INFO
19062e
19062e
# Source function library.
19062e
. /etc/rc.d/init.d/functions
19062e
19062e
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
19062e
19062e
[ "${NETWORKING}" = "yes" ] || exit 0
19062e
19062e
[ -r /etc/sysconfig/dund ] && . /etc/sysconfig/dund
19062e
19062e
start() 
19062e
{
19062e
	[ -z "$DUNDARGS" ] && exit 6
19062e
19062e
        echo -n $"Starting dund: "
19062e
        daemon /usr/bin/dund $DUNDARGS
19062e
	RETVAL=$?
19062e
	echo
19062e
	[ $RETVAL = 0 ] && touch /var/lock/subsys/dund
19062e
        return $RETVAL
19062e
}
19062e
19062e
stop() 
19062e
{
19062e
        echo -n $"Shutting down dund: "
19062e
	/usr/bin/dund -K
19062e
	killproc dund
19062e
	RETVAL=$?
19062e
19062e
	rm -f  /var/lock/subsys/dund
19062e
        echo
19062e
	return $RETVAL
19062e
}
19062e
19062e
# See how we were called.
19062e
case "$1" in
19062e
  start)
19062e
	start
19062e
        ;;
19062e
  stop)
19062e
	stop
19062e
        ;;
19062e
  force-reload|restart|reload)
19062e
	stop
19062e
	start
19062e
	;;
19062e
  try-restart|condrestart)
19062e
	[ -e /var/lock/subsys/dund ] && (stop; start)
19062e
	;;
19062e
  status)
19062e
  	status dund
19062e
	RETVAL=$?
19062e
	;;
19062e
  *)
19062e
        echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
19062e
        exit 3
19062e
esac
19062e
19062e
exit $RETVAL