mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 15:48:06 +02:00
2005-08-11 Robert Love <rml@novell.com>
* initscript/SUSE/networkmanager: update. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@835 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
8c06b389e2
commit
e02429f794
2 changed files with 35 additions and 29 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2005-08-11 Robert Love <rml@novell.com>
|
||||
|
||||
* initscript/SUSE/networkmanager: update.
|
||||
|
||||
2005-08-11 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/nm-dhcp-manager.c
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#! /bin/sh
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: networkmanager
|
||||
# Required-Start: $network dbus hal
|
||||
|
|
@ -14,34 +15,35 @@ test -x $NETWORKMANAGER_BIN || exit 5
|
|||
rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting the NetworkManager"
|
||||
startproc $NETWORKMANAGER_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down the NetworkManager"
|
||||
killproc -TERM $NETWORKMANAGER_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
force-reload|reload)
|
||||
echo -n "Reloading the NetworkManager"
|
||||
killproc -HUP $NETWORKMANAGER_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for the NetworkManager: "
|
||||
checkproc $NETWORKMANAGER_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|restart|force-reload|reload}"
|
||||
exit 1
|
||||
;;
|
||||
start)
|
||||
checkproc $NETWORKMANAGER_BIN
|
||||
if [ $? = 0 ]; then
|
||||
echo -n "NetworkManager already running"
|
||||
rc_status -v
|
||||
rc_exit
|
||||
fi
|
||||
echo -n "Starting the NetworkManager"
|
||||
startproc $NETWORKMANAGER_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down the NetworkManager"
|
||||
killproc -TERM $NETWORKMANAGER_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for the NetworkManager: "
|
||||
checkproc $NETWORKMANAGER_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue