summaryrefslogtreecommitdiff
path: root/recipes/networkmanager/files/NetworkManager
blob: 0beff6308144b00ba22d97329930046c725f73a2 (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
#!/bin/sh
#
# NetworkManager startup script

. /etc/profile

case $1 in
  'start')
    echo -n "Starting NetworkManager daemon: NetworkManager"
    /usr/sbin/NetworkManager 
    echo "."
  ;;

  'stop')
    echo -n "Stopping NetworkManager daemon: NetworkManager"
    kill `ps |grep  /usr/sbin/NetworkManager | grep -v grep | cut "-d " -f2`
    echo "."
  ;;

  'restart')
    $0 stop
    $0 start
  ;;

  *)
    echo "Usage: $0 { start | stop | restart }"
  ;;
esac