diff options
Diffstat (limited to 'package/network/utils/linux-atm/files')
-rwxr-xr-x | package/network/utils/linux-atm/files/br2684ctl | 2 | ||||
-rw-r--r-- | package/network/utils/linux-atm/files/br2684ctl_wrap | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/package/network/utils/linux-atm/files/br2684ctl b/package/network/utils/linux-atm/files/br2684ctl index 3d122270e9..1cac4df04d 100755 --- a/package/network/utils/linux-atm/files/br2684ctl +++ b/package/network/utils/linux-atm/files/br2684ctl @@ -58,7 +58,7 @@ start_daemon() { procd_open_instance procd_set_param command \ - /usr/sbin/br2684ctl \ + /usr/sbin/br2684ctl_wrap "nas$unit" \ -c "$unit" -e "$encaps" -p "$payload" \ -a "$circuit" ${qos:+-q "$qos"} ${sendsize:+-s "$sendsize"} procd_close_instance diff --git a/package/network/utils/linux-atm/files/br2684ctl_wrap b/package/network/utils/linux-atm/files/br2684ctl_wrap new file mode 100644 index 0000000000..d1bc98e014 --- /dev/null +++ b/package/network/utils/linux-atm/files/br2684ctl_wrap @@ -0,0 +1,5 @@ +#!/bin/sh +. /lib/functions/network.sh +device="$1"; shift +network_defer_device "$device" +exec /usr/sbin/br2684ctl "$@" |