From 07579b65b442b88f4d8b4eebcfbcdbec2376b9a1 Mon Sep 17 00:00:00 2001 From: Sebastian Halter Date: Mon, 8 Feb 2021 19:14:08 +0100 Subject: [PATCH] Changed path to check if the headunit got a dhcp lease --- .../files/opt/crankshaft/service_wpachange.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage3/03-crankshaft-base/files/opt/crankshaft/service_wpachange.sh b/stage3/03-crankshaft-base/files/opt/crankshaft/service_wpachange.sh index 9f530af9..931387a7 100755 --- a/stage3/03-crankshaft-base/files/opt/crankshaft/service_wpachange.sh +++ b/stage3/03-crankshaft-base/files/opt/crankshaft/service_wpachange.sh @@ -18,7 +18,7 @@ function update_network() { COUNTER=0 #check for 30 seconds for dhcp lease assigned while [ $COUNTER -lt 30 ]; do - if [ -f /var/run/dhcpcd/resolv.conf/wlan0.dhcp ]; then + if [ -f /var/run/resolvconf/interfaces/wlan0.dhcp ]; then echo "[${CYAN}${BOLD} INFO ${RESET}] *******************************************************" >/dev/tty3 echo "[${CYAN}${BOLD} INFO ${RESET}] DHCP-EVENT: $SSID got a lease" >/dev/tty3 echo "[${CYAN}${BOLD} INFO ${RESET}] *******************************************************" >/dev/tty3