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
|
||||
|
||||
# Set interface from config if not set by parameter
|
||||
if [ -z "$interface" ] && [ -n "${config[WifiInterface]}" ]; then
|
||||
interface="${config[WifiInterface]}"
|
||||
echo "Interface not provided. Using interface from config: $interface"
|
||||
if [ -z "$interface" ]; then
|
||||
if [ -n "${config[WifiInterface]}" ]; then
|
||||
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
|
||||
|
||||
echo "Stopping network services..."
|
||||
|
||||
Reference in New Issue
Block a user