diff options
author | Steven Barth <cyrus@openwrt.org> | 2015-09-08 17:44:24 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2015-09-08 17:44:24 +0000 |
commit | e07959cade0eba1c85a76d76a1a673363c9f55fb (patch) | |
tree | a67502d0f73e9016128f70254b142e3326663423 /package/kernel/trelay/files/trelay.init | |
parent | 579fe7f52ab6c6d6ec6087901f8e5514cea4b4e8 (diff) | |
download | master-31e0f0ae-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.gz master-31e0f0ae-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.bz2 master-31e0f0ae-e07959cade0eba1c85a76d76a1a673363c9f55fb.zip |
package: replace ifconfig-usage with ip
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46832
Diffstat (limited to 'package/kernel/trelay/files/trelay.init')
-rw-r--r-- | package/kernel/trelay/files/trelay.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/trelay/files/trelay.init b/package/kernel/trelay/files/trelay.init index c812e12c69..e705275e3a 100644 --- a/package/kernel/trelay/files/trelay.init +++ b/package/kernel/trelay/files/trelay.init @@ -13,8 +13,8 @@ check_relay() { [ -d "/sys/kernel/debug/trelay/${dev1}-${dev2}" ] && return [ -d "/sys/class/net/${dev1}" -a -d "/sys/class/net/${dev2}" ] || return - ifconfig "$dev1" up - ifconfig "$dev2" up + ip link set dev "$dev1" up + ip link set dev "$dev2" up echo "${dev1}-${dev2},${dev1},${dev2}" > /sys/kernel/debug/trelay/add } |