From 6604b69fddacdbaa7bd92455de8852957a777fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20M=C3=B6ller?= Date: Sun, 8 Dec 2019 00:20:24 +0100 Subject: [PATCH 1/2] exclude any eth interface This should exclude all wired interfaces, to prevent the reboot of nodes without a wifi client interface. This should solve #32 --- .../files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh b/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh index ee629db..c7e21d8 100755 --- a/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh +++ b/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh @@ -3,7 +3,7 @@ upgrade_started='/tmp/autoupdate.lock' [ -f $upgrade_started ] && exit -cliifs=$(/usr/sbin/brctl show | sed -n -e '/^br-client[[:space:]]/,/^\S/ { /^\(br-client[[:space:]]\|\t\)/s/^.*\t//p }' | grep -v "bat0" | grep -v "local-port"| tr '\n' ' ') +cliifs=$(/usr/sbin/brctl show | sed -n -e '/^br-client[[:space:]]/,/^\S/ { /^\(br-client[[:space:]]\|\t\)/s/^.*\t//p }' | grep -v "bat0\|eth" | grep -v "local-port"| tr '\n' ' ') APoff=1 for r in 0 1 2; do From 70eee3123e1d5f012e328550e6ec0ae1367103e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20M=C3=B6ller?= Date: Sun, 8 Dec 2019 00:24:43 +0100 Subject: [PATCH 2/2] shorten grep -v exclude multiple string with one grep command, via: grep -v "string1\|string2\|stringn" --- .../files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh b/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh index c7e21d8..a591f6d 100755 --- a/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh +++ b/eulenfunk-hotfix/files/lib/gluon/eulenfunk-hotfix/IfNoWificlient.sh @@ -3,7 +3,7 @@ upgrade_started='/tmp/autoupdate.lock' [ -f $upgrade_started ] && exit -cliifs=$(/usr/sbin/brctl show | sed -n -e '/^br-client[[:space:]]/,/^\S/ { /^\(br-client[[:space:]]\|\t\)/s/^.*\t//p }' | grep -v "bat0\|eth" | grep -v "local-port"| tr '\n' ' ') +cliifs=$(/usr/sbin/brctl show | sed -n -e '/^br-client[[:space:]]/,/^\S/ { /^\(br-client[[:space:]]\|\t\)/s/^.*\t//p }' | grep -v "bat0\|eth\|local-port"| tr '\n' ' ') APoff=1 for r in 0 1 2; do