summaryrefslogtreecommitdiff
path: root/recipes/networkmanager/files/mamona/25NetworkManager
blob: 606d2bc33d3e3243ae4d1e5e7c1a772c7a5934a1 (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 --no-scan 
    /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