From 4520feca657ac543267b4c8840e57bb32baf18c3 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 12 May 2013 22:42:22 -0700 Subject: runqemu: Replace use of ifconfig with ip ifconfig and its ilk (net-tools package) is deprecated in favour of iproute2 package and is now removed by many distro's e.g. Archlinux. So we replace ifconfig with ip utility (From OE-Core rev: c19e5d19ae8e6e6eb9b37549d80765b8315f79a4) Signed-off-by: Khem Raj Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- scripts/runqemu-ifup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/runqemu-ifup') diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index 0926faf439..8948153d5a 100755 --- a/scripts/runqemu-ifup +++ b/scripts/runqemu-ifup @@ -70,10 +70,10 @@ if [ $STATUS -ne 0 ]; then fi fi -IFCONFIG=`which ifconfig 2> /dev/null` +IFCONFIG=`which ip 2> /dev/null` if [ "x$IFCONFIG" = "x" ]; then # better than nothing... - IFCONFIG=/sbin/ifconfig + IFCONFIG=/sbin/ip fi if [ ! -x "$IFCONFIG" ]; then echo "$IFCONFIG cannot be executed" @@ -100,7 +100,7 @@ if [ ! -x "$IPTABLES" ]; then fi n=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] -$IFCONFIG $TAP 192.168.7.$n netmask 255.255.255.255 +$IFCONFIG addr add 192.168.7.$n/32 dev $TAP dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ] $ROUTE add -host 192.168.7.$dest $TAP -- cgit v1.2.3-54-g00ecf