From a4318101ff58176958ca3ea04a1cb12da0609fdf Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@robotics.uk.to> Date: Fri, 21 Oct 2016 10:48:39 +0100 Subject: [PATCH] Change pihole interface if needed --- src/freedombone-app-pihole | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedombone-app-pihole b/src/freedombone-app-pihole index a47c57c53..db3049efa 100755 --- a/src/freedombone-app-pihole +++ b/src/freedombone-app-pihole @@ -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) -- GitLab