aboutsummaryrefslogtreecommitdiff
path: root/package/netplug
diff options
context:
space:
mode:
authorGravatar Carlos Santos <casantos@datacom.com.br>2018-06-04 23:11:56 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-06-05 09:58:37 +0200
commit4adaa581b27dc27298eb7cc421ee8f530f88e18e (patch)
treed4dfeb35853d3b17e591996578a2d53695bc34aa /package/netplug
parent49844baf2f4c0d89954ccd0c138aea39f23c51f1 (diff)
downloadbuildroot-4adaa581b27dc27298eb7cc421ee8f530f88e18e.tar.gz
buildroot-4adaa581b27dc27298eb7cc421ee8f530f88e18e.tar.bz2
netplug: look for init script configurations in /etc/default/
We are working to make all sysvinit scripts conformant to a pattern and /etc/default/ seems to be a good choice, since 34 packages already get optional configurations from files at that directory. netplug still installs an init script at /etc/rc.d/init.d/. This will be fixed in a future patch that will refactor the init scripts. Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/netplug')
-rwxr-xr-xpackage/netplug/S29netplug8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/netplug/S29netplug b/package/netplug/S29netplug
index 03422499d6..04cac9f07c 100755
--- a/package/netplug/S29netplug
+++ b/package/netplug/S29netplug
@@ -22,8 +22,8 @@ elif [ -f /etc/rc.d/init.d/functions ]; then
fi
# Source networking configuration.
-if [ -f /etc/sysconfig/network ]; then
- . /etc/sysconfig/network
+if [ -f /etc/default/network ]; then
+ . /etc/default/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
@@ -32,8 +32,8 @@ elif [ ! -f /etc/network/interfaces ]; then
exit 0
fi
-if [ -f /etc/sysconfig/netplugd ]; then
- . /etc/sysconfig/netplugd
+if [ -f /etc/default/netplugd ]; then
+ . /etc/default/netplugd
fi
# See how we were called.