aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-09-23 21:58:36 +0000
committerLuka Perkov <luka@openwrt.org>2013-09-23 21:58:36 +0000
commitef5f83620738c07f4e67042c80578882418aaf0c (patch)
treedfd6d01e5e58de422307acb593d86368db9b2da6 /package/network
parent0b09a893406c33777b4cf552dc2f72730069f71d (diff)
downloadupstream-ef5f83620738c07f4e67042c80578882418aaf0c.tar.gz
upstream-ef5f83620738c07f4e67042c80578882418aaf0c.tar.bz2
upstream-ef5f83620738c07f4e67042c80578882418aaf0c.zip
fix various init scripts
Changes include: * removing unused variables * replacing spaces with tabs where appropriate * more consistency with variable declarations Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38142
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init2
-rwxr-xr-xpackage/network/services/dropbear/files/dropbear.init3
-rw-r--r--package/network/services/relayd/files/relay.init7
3 files changed, 6 insertions, 6 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index a0aee8e02b..560928b764 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -75,7 +75,7 @@ append_addnhosts() {
}
append_bogusnxdomain() {
- xappend "--bogus-nxdomain=$1"
+ xappend "--bogus-nxdomain=$1"
}
dnsmasq() {
diff --git a/package/network/services/dropbear/files/dropbear.init b/package/network/services/dropbear/files/dropbear.init
index 728767f030..320a401e2e 100755
--- a/package/network/services/dropbear/files/dropbear.init
+++ b/package/network/services/dropbear/files/dropbear.init
@@ -6,9 +6,8 @@ START=50
STOP=50
USE_PROCD=1
-
-NAME=dropbear
PROG=/usr/sbin/dropbear
+NAME=dropbear
PIDCOUNT=0
EXTRA_COMMANDS="killclients"
EXTRA_HELP=" killclients Kill ${NAME} processes except servers and yourself"
diff --git a/package/network/services/relayd/files/relay.init b/package/network/services/relayd/files/relay.init
index edc419c0b9..d73df6ab55 100644
--- a/package/network/services/relayd/files/relay.init
+++ b/package/network/services/relayd/files/relay.init
@@ -1,5 +1,6 @@
#!/bin/sh /etc/rc.common
# Copyright (c) 2011-2012 OpenWrt.org
+
START=80
USE_PROCD=1
@@ -40,8 +41,8 @@ start_relay() {
fi
}
- procd_open_instance
- procd_set_param command "$PROG"
+ procd_open_instance
+ procd_set_param command "$PROG"
local net networks
config_get networks "$cfg" network
@@ -83,7 +84,7 @@ start_relay() {
local fwd_dhcp # = 1
config_get_bool fwd_dhcp "$cfg" forward_dhcp 1
- [ $fwd_dhcp -eq 1 ] && procd_append_param command"-D"
+ [ $fwd_dhcp -eq 1 ] && procd_append_param command "-D"
procd_close_instance
}