aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-09-08 17:44:24 +0000
committerSteven Barth <steven@midlink.org>2015-09-08 17:44:24 +0000
commit74fc7d960274f9c94522978fec886eff7307ad64 (patch)
tree7981cc84ffa3ef2c0175b15dd653ac3a5700d556 /package/network
parent5ff4b3ea4e1af3efedbd20277769bbc2818c3299 (diff)
downloadmaster-187ad058-74fc7d960274f9c94522978fec886eff7307ad64.tar.gz
master-187ad058-74fc7d960274f9c94522978fec886eff7307ad64.tar.bz2
master-187ad058-74fc7d960274f9c94522978fec886eff7307ad64.zip
package: replace ifconfig-usage with ip
Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46832 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r--package/network/config/swconfig/files/switch.sh2
-rw-r--r--package/network/services/openvpn/Makefile2
2 files changed, 2 insertions, 2 deletions
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