tests: Drop use of ifconfig, use ip instead
Signed-off-by: Jaap Keuter <jaap.keuter@xs4all.nl>
This commit is contained in:
parent
5a47bbc36b
commit
e8121c52f4
2 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ fi
|
|||
|
||||
test -d /sys/module/mac80211_hwsim || sudo modprobe mac80211_hwsim radios=7 channels=$NUM_CH support_p2p_device=0 dyndbg=+p
|
||||
|
||||
sudo ifconfig hwsim0 up
|
||||
sudo ip link set hwsim0 up
|
||||
sudo $WLANTEST -i hwsim0 -n $LOGDIR/hwsim0.pcapng -c -dtN -L $LOGDIR/hwsim0 &
|
||||
for i in 0 1 2; do
|
||||
DBUSARG=""
|
||||
|
|
|
@ -15,7 +15,7 @@ for i in `pidof valgrind.bin`; do
|
|||
done
|
||||
sudo killall -q wlantest
|
||||
if grep -q hwsim0 /proc/net/dev; then
|
||||
sudo ifconfig hwsim0 down
|
||||
sudo ip link set hwsim0 down
|
||||
fi
|
||||
|
||||
sudo killall -q hlr_auc_gw
|
||||
|
|
Loading…
Reference in a new issue