aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Claveirole <thomas.claveirole@green-communications.fr>2018-11-15 14:48:17 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-11-26 17:21:27 +0100
commit8603656ec8c88bd499e27b5465679b4922241fc0 (patch)
tree072b3eeb30b56ed76cd41a619dfe01c912965dec
parenta039dd082dd40aecfbfd3562727508748ceab68d (diff)
downloadbuildroot-8603656ec8c88bd499e27b5465679b4922241fc0.tar.gz
buildroot-8603656ec8c88bd499e27b5465679b4922241fc0.tar.bz2
package/netplug: fix quoting of ${NETWORKING} in init script
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@green-communications.fr> [Thomas: keep double quotes around "no", keep curly braces when referencing the variable.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit 5682ba9363d262a67567ed9b0531a414e6aae1bb) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rwxr-xr-xpackage/netplug/S29netplug2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/netplug/S29netplug b/package/netplug/S29netplug
index 66459061b3..cef0e6a945 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