2005-12-08 Robert Love <rml@novell.com>

* initscript/SUSE/networkmanager-dispatcher.in: new initscript for
	  NetworkManagerDispatcher.
	* configure.in, initscript/SUSE/.cvsignore,
	  initscript/SUSE/Makefile.am: support new networkmanager-dispatcher
	  initscript.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1149 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Robert Love
2005-12-08 17:01:47 +00:00
committed by Robert Love
parent b376771770
commit c521bf2e07
5 changed files with 63 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
Makefile
Makefile.in
networkmanager
networkmanager-dispatcher

View File

@@ -1,4 +1,5 @@
EXTRA_DIST = networkmanager
EXTRA_DIST = networkmanager networkmanager-dispatcher
initddir = $(sysconfdir)/init.d
initd_SCRIPTS = networkmanager
initd_SCRIPTS = networkmanager networkmanager-dispatcher

View File

@@ -0,0 +1,50 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: networkmanager-dispatcher
# Required-Start: dbus haldaemon networkmanager
# Default-Start: 3 5
# Default-Stop:
# Description: NetworkManagerDispatcher responds to network events
### END INIT INFO
bindir=@bindir@
NETWORKMANAGER_BIN=${bindir}/NetworkManagerDispatcher
test -x $NETWORKMANAGER_BIN || exit 5
. /etc/rc.status
rc_reset
case "$1" in
start)
checkproc $NETWORKMANAGER_BIN
if [ $? = 0 ]; then
echo -n "NetworkManagerDispatcher already running"
rc_status -v
rc_exit
fi
echo -n "Starting the NetworkManagerDispatcher"
startproc $NETWORKMANAGER_BIN
rc_status -v
;;
stop)
echo -n "Shutting down the NetworkManagerDispatcher"
killproc -TERM $NETWORKMANAGER_BIN
rc_status -v
;;
restart)
$0 stop
$0 start
rc_status
;;
status)
echo -n "Checking for the NetworkManagerDispatcher: "
checkproc $NETWORKMANAGER_BIN
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 1
;;
esac