mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
ddns-scripts: update init installation
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
27
net/ddns-scripts/files/etc/init.d/ddns
Normal file
27
net/ddns-scripts/files/etc/init.d/ddns
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
START=95
|
||||
STOP=10
|
||||
|
||||
boot() {
|
||||
return 0
|
||||
}
|
||||
|
||||
reload() {
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- reload
|
||||
return 0
|
||||
}
|
||||
|
||||
restart() {
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- stop
|
||||
sleep 1 # give time to shutdown
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- start
|
||||
}
|
||||
|
||||
start() {
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- start
|
||||
}
|
||||
|
||||
stop() {
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- stop
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user