diff options
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 } |