mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-26 23:26:47 +01:00
Set default interface value if undefined
This commit is contained in:
@@ -43,9 +43,14 @@ if [ -r "$CONFIGFILE" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set interface from config if not set by parameter
|
# Set interface from config if not set by parameter
|
||||||
if [ -z "$interface" ] && [ -n "${config[WifiInterface]}" ]; then
|
if [ -z "$interface" ]; then
|
||||||
interface="${config[WifiInterface]}"
|
if [ -n "${config[WifiInterface]}" ]; then
|
||||||
echo "Interface not provided. Using interface from config: $interface"
|
interface="${config[WifiInterface]}"
|
||||||
|
echo "Interface not provided. Using interface from config: $interface"
|
||||||
|
else
|
||||||
|
interface="wlan0"
|
||||||
|
echo "Interface not provided and not found in config. Defaulting to: $interface"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Stopping network services..."
|
echo "Stopping network services..."
|
||||||
|
|||||||
Reference in New Issue
Block a user