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:
@@ -1,3 +1,4 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
networkmanager
|
||||
networkmanager-dispatcher
|
||||
|
@@ -1,4 +1,5 @@
|
||||
EXTRA_DIST = networkmanager
|
||||
EXTRA_DIST = networkmanager networkmanager-dispatcher
|
||||
|
||||
initddir = $(sysconfdir)/init.d
|
||||
initd_SCRIPTS = networkmanager
|
||||
initd_SCRIPTS = networkmanager networkmanager-dispatcher
|
||||
|
||||
|
50
initscript/SUSE/networkmanager-dispatcher.in
Normal file
50
initscript/SUSE/networkmanager-dispatcher.in
Normal 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
|
Reference in New Issue
Block a user