Change pihole interface if needed
This commit is contained in:
parent
536c078489
commit
a4318101ff
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue