Skip to content
Snippets Groups Projects
Commit a4318101 authored by Bob Mottram's avatar Bob Mottram
Browse files

Change pihole interface if needed

parent 536c0784
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,14 @@ function pihole_update {
return
fi
if [[ $(config_param_exists WIFI_INTERFACE) == "0" ]]; then
PIHOLE_IFACE=eth0
else
read_config_param WIFI_INTERFACE
PIHOLE_IFACE=$WIFI_INTERFACE
write_config_param "PIHOLE_IFACE" "$PIHOLE_IFACE"
fi
IPv4_address=$(get_ipv4_address)
IPv6_address=$(get_ipv6_address)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment