[Buildroot] [PATCH 1/1] netplug (/etc/init.d/S29netplug): Fix the quoting of ${NETWORKING}.
Thomas Claveirole
thomas.claveirole at green-communications.fr
Thu Nov 15 13:48:17 UTC 2018
Since 4adaa581b27dc27298eb7cc421ee8f530f88e18e, S29netplug looks for
/etc/default/network instead of /etc/sysconfig/network. When this
file exists but does not define $NETWORKING, the script fails on line
29 with something like:
/etc/init.d/S29netplug: 29: [: =: unexpected operator
Fix quoting so this error no longer happens.
Signed-off-by: Thomas Claveirole <thomas.claveirole at green-communications.fr>
---
package/netplug/S29netplug | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/netplug/S29netplug b/package/netplug/S29netplug
index 66459061b3..6c344662bb 100755
--- a/package/netplug/S29netplug
+++ b/package/netplug/S29netplug
@@ -26,7 +26,7 @@ if [ -f /etc/default/network ]; then
. /etc/default/network
# Check that networking is up.
- [ ${NETWORKING} = "no" ] && exit 0
+ [ "$NETWORKING" = no ] && exit 0
elif [ ! -f /etc/network/interfaces ]; then
# No network support
exit 0
--
2.19.1
More information about the buildroot
mailing list