mirror of
https://github.com/openwrt/luci.git
synced 2026-09-01 19:01:51 +04:00
applications/luci-splash: fix init script enabling on build host
This commit is contained in:
@@ -9,10 +9,6 @@ LIMIT_UP=0
|
||||
IPT_REPLAY=/var/run/luci_splash.iptlog
|
||||
LOCK=/var/run/luci_splash.lock
|
||||
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
config_load luci_splash
|
||||
|
||||
silent() {
|
||||
"$@" 2>/dev/null
|
||||
}
|
||||
@@ -167,6 +163,10 @@ EOF
|
||||
start() {
|
||||
lock -w $LOCK && lock $LOCK
|
||||
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
config_load luci_splash
|
||||
|
||||
### Find QoS limits
|
||||
config_get LIMIT_UP general limit_up
|
||||
config_get LIMIT_DOWN general limit_down
|
||||
@@ -240,6 +240,10 @@ start() {
|
||||
stop() {
|
||||
lock -w $LOCK && lock $LOCK
|
||||
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
config_load luci_splash
|
||||
|
||||
### Clear interface rules
|
||||
config_foreach iface_del iface
|
||||
|
||||
|
||||
Reference in New Issue
Block a user