summaryrefslogtreecommitdiffstats
path: root/package/netplug/S29netplug
Commit message (Collapse)AuthorAgeFilesLines
* packages: update sysv S* scripts to 644Matt Weber2019-02-081-0/+0
| | | | | Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/netplug: fix quoting of ${NETWORKING} in init scriptThomas Claveirole2018-11-201-1/+1
| | | | | | | | | | | | | | | | 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>
* netplug: prevent starting multiple instances of netplugdCarlos Santos2018-06-071-2/+2
| | | | | | | | | | | | | | | Executing "/etc/init.d/S29netplug start" multiple times resulted in multiple instances of netplugd. Pass "-p /var/run/netplug.pid" to netplugd, so it creates the PID file that start-stop-daemon needs to know that netplugd is already running. Also use the pid file to stop netplugd, instead of the daemon name. Fixes https://bugs.busybox.net/show_bug.cgi?id=10661 Reported-by: Joachim Krueger <mail2k@web.de> Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* netplug: look for init script configurations in /etc/default/Carlos Santos2018-06-051-4/+4
| | | | | | | | | | | | 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>
* netplug: don't test if the binary exists in the init scriptCarlos Santos2018-04-161-2/+0
| | | | | | | | The test doesn't make sense. It just exits without any error if the binary doesn't exist, which is silly. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/netplug: init script create needed lock directoryJulien Corjon2017-09-051-0/+3
| | | | | | | | Init script use /var/lock/subsys/netplugd but directory /var/lock/subsys can be missing. Signed-off-by: Julien Corjon <corjon.j@ecagroup.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: Replace 'echo -n' by 'printf'Maxime Hadjinlian2015-10-041-2/+2
| | | | | | | | | | | | 'echo -n' is not a POSIX construct (no flag support), we shoud use 'printf', especially in init script. This patch was generated by the following command line: git grep -l 'echo -n' -- `git ls-files | grep -v 'patch'` | xargs sed -i 's/echo -n/printf/' Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Remove stray $ character from a bunch of init scriptsLuca Ceresoli2012-03-151-3/+3
| | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Don't use long options to start-stop-daemon as they may be disabled in the ↵Hamish Moffatt2008-03-181-2/+2
| | | | busybox configuration
* Rename all INIT scripts to have the numerical prefixes to easily see the ↵"Steven J. Hill"2007-05-091-0/+69
start-up order.
OpenPOWER on IntegriCloud