From b832954f05a493a97b709b924efe824afd5ee441 Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 6 Dec 2020 09:08:11 +0000 Subject: [PATCH] Check if 090_wlan0.conf exists --- installers/uninstall.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installers/uninstall.sh b/installers/uninstall.sh index 77afda6c..b87304ae 100755 --- a/installers/uninstall.sh +++ b/installers/uninstall.sh @@ -172,8 +172,10 @@ function _restore_networking() { fi echo "Done." # Remove dnsmasq and bridge configs - echo "Removing 090_raspap.conf from dnsmasq" - sudo rm "$raspap_dnsmasq" || _install_error "Unable to remove $raspap_dnsmasq" + echo "Removing 090_wlan0.conf from dnsmasq" + if [ -f $raspap_dnsmasq ]; then + sudo rm "$raspap_dnsmasq" || _install_error "Unable to remove $raspap_dnsmasq" + fi echo "Removing raspap bridge configurations" sudo rm "$raspap_network"/raspap* || _install_error "Unable to remove bridge config" if [ -f $raspap_adblock ]; then