blob: 6b51bfa84358f218328f020230fb3d5b68c92779 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
#
# NetworkManager startup script
. /etc/profile
case $1 in
'start')
echo -n "Starting NetworkManager daemon: NetworkManager"
/usr/sbin/NetworkManager
/usr/sbin/NetworkManagerDispatcher
echo "."
;;
'stop')
echo -n "Stopping NetworkManager daemon: NetworkManager"
kill `pidof NetworkManagerDispatcher`
kill `pidof NetworkManager`
echo "."
;;
'restart')
$0 stop
$0 start
;;
*)
echo "Usage: $0 { start | stop | restart }"
;;
esac
|