summaryrefslogtreecommitdiffstats
path: root/package/network/utils/linux-atm/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/utils/linux-atm/files')
-rw-r--r--package/network/utils/linux-atm/files/br2684-up3
-rwxr-xr-xpackage/network/utils/linux-atm/files/br2684ctl13
2 files changed, 5 insertions, 11 deletions
diff --git a/package/network/utils/linux-atm/files/br2684-up b/package/network/utils/linux-atm/files/br2684-up
new file mode 100644
index 0000000000..ba1d67023e
--- /dev/null
+++ b/package/network/utils/linux-atm/files/br2684-up
@@ -0,0 +1,3 @@
+#!/bin/sh
+. /lib/functions/network.sh
+network_ready_device "$1"
diff --git a/package/network/utils/linux-atm/files/br2684ctl b/package/network/utils/linux-atm/files/br2684ctl
index 1cac4df04d..0fa86bdefd 100755
--- a/package/network/utils/linux-atm/files/br2684ctl
+++ b/package/network/utils/linux-atm/files/br2684ctl
@@ -60,20 +60,11 @@ start_daemon() {
procd_set_param command \
/usr/sbin/br2684ctl_wrap "nas$unit" \
-c "$unit" -e "$encaps" -p "$payload" \
- -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"}
+ -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} \
+ -S /lib/netifd/br2684-up
procd_close_instance
}
-service_running() {
- . /lib/functions/network.sh
-
- sleep 1
- for path in /sys/class/net/nas*; do
- dev="${path##*/}"
- network_ready_device "$dev"
- done
-}
-
service_triggers() {
local script=$(readlink "$initscript")
local name=$(basename ${script:-$initscript})