• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/network-manager/S45network-manager
Daniel MackDaniel Mack committed e991961d4ef02 Dec 2011
Raw file
Source viewDiff to previous
 
1
#!/bin/sh
2
​
3
prefix=/usr
4
exec_prefix=/usr
5
sbindir=${exec_prefix}/sbin
6
​
7
NETWORKMANAGER_BIN=${sbindir}/NetworkManager
8
​
9
[ -x $NETWORKMANAGER_BIN ] || exit 0
10
​
11
PID=`pidof -o %PPID NetworkManager`
12
case "$1" in
13
    start)
14
        echo -n "Starting NetworkManager ... "
15
        [ ! -d /var/run/NetworkManager ] && install -d /var/run/NetworkManager
16
        if [ -z "$PID" ]; then
17
            $NETWORKMANAGER_BIN
18
        fi
19
        if [ ! -z "$PID" -o $? -gt 0 ]; then
20
            echo "failed!"
21
        else
22
            echo "done."
23
        fi
24
        ;;
25
    stop)
26
        echo -n "Stopping NetworkManager ... "
27
            [ ! -z "$PID" ] && kill $PID &> /dev/null
28
        if [ $? -gt 0 ]; then
29
            echo "failed!"
30
        else
31
            echo "done."
32
        fi
33
        ;;
34
    restart)
35
        $0 stop
36
        sleep 1
37
        $0 start
38
        ;;
39
    *)
40
        echo "usage: $0 {start|stop|restart|sleep|wake}"
41
        ;;
42
esac
43
exit 0
44
​
45
​
46
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.