Compare commits
5
Commits
0.0.1-x86_64
...
0.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a9603fc80 | ||
|
|
f078ee798e | ||
|
|
f435a67e82 | ||
|
|
a107ac034d | ||
|
|
cb3b43eb57 |
+1
-1
@@ -1 +1 @@
|
||||
simple
|
||||
HOSTNAME
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
127.0.1.1 simple.localdomain simple
|
||||
127.0.1.1 HOSTNAME.localdomain HOSTNAME
|
||||
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
start() {
|
||||
notify "Starting Netplugd"
|
||||
netplugd -p /var/run/netplugd.pid
|
||||
check $? "start netplugd"
|
||||
return $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
notify "Stopping Netplugd"
|
||||
kill $(cat /var/run/netplugd.pid)
|
||||
check $? "stop Netplugd"
|
||||
rm /var/run/netplugd.pid &> /dev/null
|
||||
return $?
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart|reload|help)
|
||||
"$1"
|
||||
;;
|
||||
*)
|
||||
help
|
||||
;;
|
||||
esac
|
||||
return $?
|
||||
|
||||
Reference in New Issue
Block a user