From patchwork Fri Oct 13 23:17:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fff-hoods: Suppress error when deleting non-existent files From: Adrian Schmutzler X-Patchwork-Id: 560 Message-Id: <1507936660-2649-1-git-send-email-freifunk@adrianschmutzler.de> To: franken-dev@freifunk.net Date: Sat, 14 Oct 2017 01:17:40 +0200 Signed-off-by: Adrian Schmutzler --- src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood index b48b260..d64345f 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -4,7 +4,7 @@ . /lib/functions/fff/wireless . /lib/functions/fff/timeserver -rm /tmp/keyxchangev2data +rm -f /tmp/keyxchangev2data # Gatewaycheck function isGatewayAvailable() { @@ -66,7 +66,7 @@ else if ! isGatewayAvailable ; then #now we haven't a gateway in Range, we search for a hidden AP to get a keyxchangev2data file! #first we delete all wifi settings - rm /www/public/keyxchangev2data # delete this, so interfaces are recreated if reconnect with unchanged hood file takes place + rm -f /www/public/keyxchangev2data # delete this, so interfaces are recreated if reconnect with unchanged hood file takes place if ! wifiDelAll; then echo "Can't delete current wifi setup"