Last change
on this file since 382b548 was
382b548,
checked in by Andrew Bradford <andrew@…>, 7 years ago
|
netplugd: Create start/stop script
|
-
Property mode set to
100755
|
File size:
308 bytes
|
Line | |
---|
1 | #!/bin/ash |
---|
2 | |
---|
3 | # Netplugd Startup Script |
---|
4 | |
---|
5 | . /etc/rc.d/init.d/functions |
---|
6 | |
---|
7 | case "$1" in |
---|
8 | start) |
---|
9 | echo -n "Starting netplugd: " |
---|
10 | netplugd |
---|
11 | check_status |
---|
12 | ;; |
---|
13 | stop) |
---|
14 | echo -n "Stopping netplugd: " |
---|
15 | killall netplugd |
---|
16 | check_status |
---|
17 | ;; |
---|
18 | restart) |
---|
19 | $0 stop |
---|
20 | $0 start |
---|
21 | ;; |
---|
22 | *) |
---|
23 | echo "Usage: $0 {start|stop|restart}" |
---|
24 | exit 1 |
---|
25 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.