diff options
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 3bd0a09d8e..3c5282d89a 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
@@ -139,16 +139,16 @@ if [ ! -d "$LOCKDIR" ]; then | |||
139 | chmod 777 $LOCKDIR | 139 | chmod 777 $LOCKDIR |
140 | fi | 140 | fi |
141 | 141 | ||
142 | IFCONFIG=`which ifconfig 2> /dev/null` | 142 | IFCONFIG=`which ip 2> /dev/null` |
143 | if [ -z "$IFCONFIG" ]; then | 143 | if [ -z "$IFCONFIG" ]; then |
144 | IFCONFIG=/sbin/ifconfig | 144 | IFCONFIG=/sbin/ip |
145 | fi | 145 | fi |
146 | if [ ! -x "$IFCONFIG" ]; then | 146 | if [ ! -x "$IFCONFIG" ]; then |
147 | echo "$IFCONFIG cannot be executed" | 147 | echo "$IFCONFIG cannot be executed" |
148 | exit 1 | 148 | exit 1 |
149 | fi | 149 | fi |
150 | 150 | ||
151 | POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}' | sed s/://` | 151 | POSSIBLE=`$IFCONFIG link | grep 'tap' | awk '{print $2}' | sed s/://` |
152 | TAP="" | 152 | TAP="" |
153 | LOCKFILE="" | 153 | LOCKFILE="" |
154 | for tap in $POSSIBLE; do | 154 | for tap in $POSSIBLE; do |