mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
add check for uap0 interface
This commit is contained in:
parent
cce45fa1bf
commit
e4ff789a50
@ -88,8 +88,12 @@ if [ -r "$CONFIGFILE" ]; then
|
|||||||
|
|
||||||
if [ "${config[WifiAPEnable]}" = 1 ]; then
|
if [ "${config[WifiAPEnable]}" = 1 ]; then
|
||||||
if [ "${interface}" = "uap0" ]; then
|
if [ "${interface}" = "uap0" ]; then
|
||||||
echo "Removing uap0 interface..."
|
|
||||||
iw dev uap0 del
|
ip link ls up | grep -q 'uap0' &> /dev/null
|
||||||
|
if [ $? == 0 ]; then
|
||||||
|
echo "Removing uap0 interface..."
|
||||||
|
iw dev uap0 del
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Adding uap0 interface to ${config[WifiManaged]}"
|
echo "Adding uap0 interface to ${config[WifiManaged]}"
|
||||||
iw dev ${config[WifiManaged]} interface add uap0 type __ap
|
iw dev ${config[WifiManaged]} interface add uap0 type __ap
|
||||||
|
Loading…
Reference in New Issue
Block a user