blob: 5a20d2b96e1e3eb2c860d6abdf7cee2796dc2acc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
# The purpose of this script is to allow
# the rs9113 onebox_util functionality to
# be implemented seamlessly for the rsi
# driver.
rpine=$1
cmd=$2
interface=$3
if [[ $cmd == delete_vap ]] ; then
ip link set $interface down || exit 0
exit 0
fi
if [[ -L /sys/class/net/$interface ]] ; then
exit 0
fi
cd /sys/class/net/
for d in wlan[0-9]* ; do
if ip link set $d down ; then
ip link set $d name $interface
exit 0
fi
done
|