From e07959cade0eba1c85a76d76a1a673363c9f55fb Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 8 Sep 2015 17:44:24 +0000 Subject: package: replace ifconfig-usage with ip Signed-off-by: Steven Barth SVN-Revision: 46832 --- package/network/config/swconfig/files/switch.sh | 2 +- package/network/services/openvpn/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'package/network') diff --git a/package/network/config/swconfig/files/switch.sh b/package/network/config/swconfig/files/switch.sh index ba6924d9d2..74d259073f 100644 --- a/package/network/config/swconfig/files/switch.sh +++ b/package/network/config/swconfig/files/switch.sh @@ -5,7 +5,7 @@ setup_switch_dev() { local name config_get name "$1" name name="${name:-$1}" - [ -d "/sys/class/net/$name" ] && ifconfig "$name" up + [ -d "/sys/class/net/$name" ] && ip link set dev "$name" up swconfig dev "$name" load network } diff --git a/package/network/services/openvpn/Makefile b/package/network/services/openvpn/Makefile index f3de63d0c6..a1784f4c85 100644 --- a/package/network/services/openvpn/Makefile +++ b/package/network/services/openvpn/Makefile @@ -62,7 +62,7 @@ endif CONFIGURE_VARS += \ IFCONFIG=/sbin/ifconfig \ ROUTE=/sbin/route \ - IPROUTE=/usr/sbin/ip \ + IPROUTE=/sbin/ip \ NETSTAT=/sbin/netstat define Build/Configure -- cgit v1.2.3