summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/running-openadk.txt6
-rwxr-xr-xpackage/adk-test-tools/files/test.init1
-rw-r--r--package/aiccu/files/aiccu.init1
-rw-r--r--package/alix-switch/files/alix-switch.init1
-rw-r--r--package/alsa-utils/files/amixer.init1
-rw-r--r--package/asterisk/files/asterisk.init1
-rw-r--r--package/avahi/files/avahi-daemon.init1
-rw-r--r--package/axtls/files/axhttpd.init1
-rw-r--r--package/bind/files/named.init1
-rw-r--r--package/bitlbee/files/bitlbee.init1
-rw-r--r--package/bkeymaps/files/kbd.init1
-rw-r--r--package/bluez/files/bluez.init1
-rw-r--r--package/busybox/files/crond.init1
-rw-r--r--package/busybox/files/inetd.init3
-rw-r--r--package/busybox/files/ntpd.init1
-rw-r--r--package/busybox/files/syslogd.init1
-rw-r--r--package/busybox/files/udhcpd.init1
-rw-r--r--package/busybox/files/watchdog.init1
-rw-r--r--package/cherokee/files/cherokee.init1
-rw-r--r--package/chillispot/files/chillispot.init1
-rw-r--r--package/collectd/files/collectd.init1
-rw-r--r--package/cups/files/cupsd.init1
-rw-r--r--package/dansguardian/files/dansguardian.init1
-rw-r--r--package/dbus/files/dbus.init1
-rw-r--r--package/dhcp-forwarder/files/dhcp-fwd.init1
-rw-r--r--package/dhcp/files/dhcpd.init1
-rw-r--r--package/dnsmasq/files/dnsmasq.init1
-rw-r--r--package/dropbear/files/dropbear.init1
-rw-r--r--package/esound/files/esd.init1
-rw-r--r--package/ez-ipupdate/files/ez-ipupdate.init1
-rw-r--r--package/fakeidentd/files/fakeidentd.init1
-rw-r--r--package/forked-daapd/files/forked-daapd.init1
-rw-r--r--package/freeradius-server/files/radiusd.init1
-rw-r--r--package/frickin/files/frickin.init1
-rw-r--r--package/gkrellm/files/gkrellmd.init1
-rw-r--r--package/gmediaserver/files/gmediaserver.init1
-rw-r--r--package/gpm/files/gpm.init1
-rw-r--r--package/heimdal/files/heimdal.init1
-rw-r--r--package/htpdate/files/htpdate.init1
-rw-r--r--package/igmpproxy/files/igmpproxy.init1
-rwxr-xr-xpackage/iptables/files/firewall.init1
-rwxr-xr-xpackage/iptables/files/firewall6.init1
-rw-r--r--package/kbd/files/kbd.init1
-rw-r--r--package/krb5/files/krb5.init1
-rwxr-xr-xpackage/libvirt/files/libvirt.init3
-rw-r--r--package/lighttpd/files/lighttpd.init1
-rw-r--r--package/maradns/files/maradns.init1
-rwxr-xr-xpackage/miau/files/miau.init1
-rw-r--r--package/mini_httpd/files/mini_httpd.init1
-rw-r--r--package/miredo/files/miredo-server.init1
-rw-r--r--package/miredo/files/miredo.init1
-rw-r--r--package/monit/files/monit.init1
-rw-r--r--package/motion/files/motion.init1
-rw-r--r--package/mpd/files/mpd.init1
-rw-r--r--package/mrd6/files/mrd6.init1
-rw-r--r--package/mt-daapd/files/mt-daapd.init1
-rw-r--r--package/net-snmp/files/snmpd.init1
-rw-r--r--package/netperf/files/netserver.init1
-rw-r--r--package/nfs-utils/files/nfs.init1
-rw-r--r--package/nfs-utils/files/nfsd.init1
-rw-r--r--package/nginx/files/nginx.init1
-rw-r--r--package/nut/files/upsd.init1
-rw-r--r--package/olsrd/files/olsrd.init1
-rw-r--r--package/openct/files/openct.init1
-rw-r--r--package/openldap/files/slapd.init1
-rw-r--r--package/openntpd/files/ntpd.init1
-rw-r--r--package/opensips/files/opensips.init1
-rw-r--r--package/openssh/files/sshd.init1
-rw-r--r--package/openswan/files/openswan.init1
-rw-r--r--package/openvpn/files/openvpn.init1
-rw-r--r--package/p910nd/files/p910nd.init1
-rw-r--r--package/parprouted/files/parprouted.init1
-rw-r--r--package/pcsc-lite/files/pcscd.init1
-rw-r--r--package/pdnsd/files/pdnsd.init1
-rw-r--r--package/php/files/php.init1
-rw-r--r--package/pmacct/files/nfacctd.init1
-rw-r--r--package/pmacct/files/pmacctd.init1
-rw-r--r--package/polipo/files/polipo.init1
-rw-r--r--package/postfix/files/postfix.init1
-rw-r--r--package/pptpd/files/pptpd.init1
-rw-r--r--package/privoxy/files/privoxy.init1
-rw-r--r--package/pulseaudio/files/pulseaudio.init1
-rw-r--r--package/quagga/files/quagga.init1
-rw-r--r--package/radvd/files/radvd.init1
-rw-r--r--package/rarpd/files/rarpd.init1
-rw-r--r--package/reaim/files/reaim.init1
-rw-r--r--package/rng-tools/files/rngd.init1
-rw-r--r--package/rp-pppoe/files/pppoe-client.init1
-rw-r--r--package/rp-pppoe/files/pppoe-relay.init1
-rw-r--r--package/rp-pppoe/files/pppoe-server.init1
-rw-r--r--package/rpcbind/files/rpcbind.init1
-rw-r--r--package/rrdcollect/files/rrdcollect.init1
-rw-r--r--package/samba/files/samba.init3
-rw-r--r--package/scanlogd/files/scanlogd.init1
-rw-r--r--package/shorewall-common/files/shorewall.init3
-rw-r--r--package/siproxd/files/siproxd.init1
-rw-r--r--package/snort/files/snort.init1
-rw-r--r--package/squeezelite/files/squeezelite.init1
-rw-r--r--package/squid/files/squid.init1
-rw-r--r--package/srelay/files/srelay.init1
-rw-r--r--package/strongswan/files/strongswan.init1
-rw-r--r--package/subversion/files/svnserve.init1
-rw-r--r--package/syslog-ng/files/syslog-ng.init1
-rw-r--r--package/tinyproxy/files/tinyproxy.init1
-rw-r--r--package/tntnet/files/tntnet.init1
-rw-r--r--package/tor/files/tor.init1
-rwxr-xr-xpackage/totd/files/totd.init1
-rw-r--r--package/ulogd/files/ulogd.init1
-rw-r--r--package/uvd/files/uvd.init1
-rw-r--r--package/vrrpd/files/vrrpd.init1
-rw-r--r--package/vsftpd/files/vsftpd.init1
-rw-r--r--package/watchdog/files/watchdog.init1
-rw-r--r--package/wifidog/files/wifidog.init1
-rw-r--r--package/wondershaper/files/wondershaper.init1
-rw-r--r--package/xbmc/files/xbmc.init1
-rw-r--r--package/xdm/files/xdm.init1
-rw-r--r--package/xinetd/files/xinetd.init1
117 files changed, 124 insertions, 6 deletions
diff --git a/docs/running-openadk.txt b/docs/running-openadk.txt
index c4ae0fa72..7f33f1cd1 100644
--- a/docs/running-openadk.txt
+++ b/docs/running-openadk.txt
@@ -88,8 +88,9 @@ The /etc/init.d/rcS script will execute all shell scripts in /etc/init.d in
order with the parameter +autostart+. The order is identified by the +#INIT+
comment in the script. All scripts are sourcing the +/etc/rc.conf+ file to
determine if a service should be started on boot and which flags if any are
-used for the service. By default all services except syslog and ssh are
-disabled. Most scripts provided by OpenADK via
+used for the service. By default all services are disabled. If the variable
+for a service is set to "DAEMON" and mksh is installed, the service starts
+asynchronously in the background. Most scripts provided by OpenADK via
+package/<pkgname>/files/<pkgname>.init+ are like:
---------------------
@@ -103,6 +104,7 @@ case $1 in
autostop) ;;
autostart)
test x"${foo:-NO}" = x"NO" && exit 0
+ test x"$foo" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/adk-test-tools/files/test.init b/package/adk-test-tools/files/test.init
index 9812c86df..203a8c973 100755
--- a/package/adk-test-tools/files/test.init
+++ b/package/adk-test-tools/files/test.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${test:-NO}" = x"NO" && exit 0
+ test x"$test" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/aiccu/files/aiccu.init b/package/aiccu/files/aiccu.init
index dbec044a4..c3d3d5b4b 100644
--- a/package/aiccu/files/aiccu.init
+++ b/package/aiccu/files/aiccu.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${aiccu:-NO}" = x"NO" && exit 0
+ test x"$aiccu" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/alix-switch/files/alix-switch.init b/package/alix-switch/files/alix-switch.init
index adb6e9230..59433e773 100644
--- a/package/alix-switch/files/alix-switch.init
+++ b/package/alix-switch/files/alix-switch.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${alix_switch:-NO}" = x"NO" && exit 0
+ test x"$alix_switch" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/alsa-utils/files/amixer.init b/package/alsa-utils/files/amixer.init
index f5c21b8c3..5d86d5875 100644
--- a/package/alsa-utils/files/amixer.init
+++ b/package/alsa-utils/files/amixer.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${amixer:-NO}" = x"NO" && exit 0
+ test x"$amixer" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/asterisk/files/asterisk.init b/package/asterisk/files/asterisk.init
index d11a1f1b1..d43c5defe 100644
--- a/package/asterisk/files/asterisk.init
+++ b/package/asterisk/files/asterisk.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${asterisk:-NO}" = x"NO" && exit 0
+ test x"$asterisk" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/avahi/files/avahi-daemon.init b/package/avahi/files/avahi-daemon.init
index 660d713e9..ca78aa486 100644
--- a/package/avahi/files/avahi-daemon.init
+++ b/package/avahi/files/avahi-daemon.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${avahi:-NO}" = x"NO" && exit 0
+ test x"$avahi" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/axtls/files/axhttpd.init b/package/axtls/files/axhttpd.init
index fd662f132..6991a0be4 100644
--- a/package/axtls/files/axhttpd.init
+++ b/package/axtls/files/axhttpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${axhttpd:-NO}" = x"NO" && exit 0
+ test x"$axhttpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/bind/files/named.init b/package/bind/files/named.init
index c3ad09d85..e853202b4 100644
--- a/package/bind/files/named.init
+++ b/package/bind/files/named.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${named:-NO}" = x"NO" && exit 0
+ test x"$named" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/bitlbee/files/bitlbee.init b/package/bitlbee/files/bitlbee.init
index f4bb4e1c9..ea72fd15e 100644
--- a/package/bitlbee/files/bitlbee.init
+++ b/package/bitlbee/files/bitlbee.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${bitlbee:-NO}" = x"NO" && exit 0
+ test x"$bitlbee" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/bkeymaps/files/kbd.init b/package/bkeymaps/files/kbd.init
index 4aec7dffe..b1e240cb7 100644
--- a/package/bkeymaps/files/kbd.init
+++ b/package/bkeymaps/files/kbd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${kbd:-NO}" = x"NO" && exit 0
+ test x"$kbd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/bluez/files/bluez.init b/package/bluez/files/bluez.init
index 1100d4974..ed4faa547 100644
--- a/package/bluez/files/bluez.init
+++ b/package/bluez/files/bluez.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${bluez:-NO}" = x"NO" && exit 0
+ test x"$bluez" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/crond.init b/package/busybox/files/crond.init
index ea8faa90a..cc22fe91e 100644
--- a/package/busybox/files/crond.init
+++ b/package/busybox/files/crond.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${crond:-NO}" = x"NO" && exit 0
+ test x"$crond" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/inetd.init b/package/busybox/files/inetd.init
index 142fa6a03..cbdc11f2a 100644
--- a/package/busybox/files/inetd.init
+++ b/package/busybox/files/inetd.init
@@ -4,8 +4,9 @@
. /etc/rc.conf
case $1 in
autostart)
- test x"$inetd" = x"NO" && exit 0
+ test x"${inetd:-NO}" = x"NO" && exit 0
test -e /etc/inetd.conf || exit 0
+ test x"$inetd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/ntpd.init b/package/busybox/files/ntpd.init
index 180f161a7..c79d6c4bd 100644
--- a/package/busybox/files/ntpd.init
+++ b/package/busybox/files/ntpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${ntpd:-NO}" = x"NO" && exit 0
+ test x"$ntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/syslogd.init b/package/busybox/files/syslogd.init
index 7a85430ca..fb563d808 100644
--- a/package/busybox/files/syslogd.init
+++ b/package/busybox/files/syslogd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${syslogd_flags:-NO}" = x"NO" && exit 0
+ test x"$syslogd_flags" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/udhcpd.init b/package/busybox/files/udhcpd.init
index edec3ac91..3a280c6ed 100644
--- a/package/busybox/files/udhcpd.init
+++ b/package/busybox/files/udhcpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${udhcpd:-NO}" = x"NO" && exit 0
+ test x"$udhcpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/busybox/files/watchdog.init b/package/busybox/files/watchdog.init
index 8632cc36d..d3d0bb3b7 100644
--- a/package/busybox/files/watchdog.init
+++ b/package/busybox/files/watchdog.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${watchdog:-NO}" = x"NO" && exit 0
+ test x"$watchdog" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/cherokee/files/cherokee.init b/package/cherokee/files/cherokee.init
index a66fc6330..592d852de 100644
--- a/package/cherokee/files/cherokee.init
+++ b/package/cherokee/files/cherokee.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${cherokee:-NO}" = x"NO" && exit 0
+ test x"$cherokee" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/chillispot/files/chillispot.init b/package/chillispot/files/chillispot.init
index 569837d68..cf0e460ac 100644
--- a/package/chillispot/files/chillispot.init
+++ b/package/chillispot/files/chillispot.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${chillispot:-NO}" = x"NO" && exit 0
+ test x"$chillispot" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/collectd/files/collectd.init b/package/collectd/files/collectd.init
index ce1905d91..0b34a43ca 100644
--- a/package/collectd/files/collectd.init
+++ b/package/collectd/files/collectd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${collectd:-NO}" = x"NO" && exit 0
+ test x"$collectd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/cups/files/cupsd.init b/package/cups/files/cupsd.init
index 6a702547c..2467cd30f 100644
--- a/package/cups/files/cupsd.init
+++ b/package/cups/files/cupsd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${cups:-NO}" = x"NO" && exit 0
+ test x"$cups" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/dansguardian/files/dansguardian.init b/package/dansguardian/files/dansguardian.init
index 2fa9007b2..f8f40a9ca 100644
--- a/package/dansguardian/files/dansguardian.init
+++ b/package/dansguardian/files/dansguardian.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${dansguardian:-NO}" = x"NO" && exit 0
+ test x"$dansguardian" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/dbus/files/dbus.init b/package/dbus/files/dbus.init
index 9659a13f5..c31f5e6ab 100644
--- a/package/dbus/files/dbus.init
+++ b/package/dbus/files/dbus.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${dbus:-NO}" = x"NO" && exit 0
+ test x"$dbus" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/dhcp-forwarder/files/dhcp-fwd.init b/package/dhcp-forwarder/files/dhcp-fwd.init
index c69b30cb8..165e3cf52 100644
--- a/package/dhcp-forwarder/files/dhcp-fwd.init
+++ b/package/dhcp-forwarder/files/dhcp-fwd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${dhcp_fwd:-NO}" = x"NO" && exit 0
+ test x"$dhcp_fwd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/dhcp/files/dhcpd.init b/package/dhcp/files/dhcpd.init
index 96b9e82c4..09b816eb0 100644
--- a/package/dhcp/files/dhcpd.init
+++ b/package/dhcp/files/dhcpd.init
@@ -6,6 +6,7 @@
case $1 in
autostart)
test x"${dhcpd:-NO}" = x"NO" && exit 0
+ test x"$dhcpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 53f86d792..6bb86473b 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${dnsmasq:-NO}" = x"NO" && exit 0
+ test x"$dnsmasq" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init
index 955ae33c3..9bf74098e 100644
--- a/package/dropbear/files/dropbear.init
+++ b/package/dropbear/files/dropbear.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${dropbear:-NO}" = x"NO" && exit 0
+ test x"$dropbear" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/esound/files/esd.init b/package/esound/files/esd.init
index 3533387ee..336ec9bfe 100644
--- a/package/esound/files/esd.init
+++ b/package/esound/files/esd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${esd:-NO}" = x"NO" && exit 0
+ test x"$esd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/ez-ipupdate/files/ez-ipupdate.init b/package/ez-ipupdate/files/ez-ipupdate.init
index 6344f54fa..4d2da25c8 100644
--- a/package/ez-ipupdate/files/ez-ipupdate.init
+++ b/package/ez-ipupdate/files/ez-ipupdate.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${ezipupdate:-NO}" = x"NO" && exit 0
+ test x"$ezipupdate" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/fakeidentd/files/fakeidentd.init b/package/fakeidentd/files/fakeidentd.init
index 09119ccb7..27211accf 100644
--- a/package/fakeidentd/files/fakeidentd.init
+++ b/package/fakeidentd/files/fakeidentd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${fakeidentd:-NO}" = x"NO" && exit 0
+ test x"$fakeidentd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/forked-daapd/files/forked-daapd.init b/package/forked-daapd/files/forked-daapd.init
index 5b4139ea6..e8b646271 100644
--- a/package/forked-daapd/files/forked-daapd.init
+++ b/package/forked-daapd/files/forked-daapd.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${forked_daapd:-NO}" = x"NO" && exit 0
+ test x"$forked_daapd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/freeradius-server/files/radiusd.init b/package/freeradius-server/files/radiusd.init
index f22fa83e0..49d9943ce 100644
--- a/package/freeradius-server/files/radiusd.init
+++ b/package/freeradius-server/files/radiusd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${radiusd:-NO}" = x"NO" && exit 0
+ test x"$radiusd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/frickin/files/frickin.init b/package/frickin/files/frickin.init
index 1b346c04b..93fb96390 100644
--- a/package/frickin/files/frickin.init
+++ b/package/frickin/files/frickin.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${frickin:-NO}" = x"NO" && exit 0
+ test x"$frickin" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/gkrellm/files/gkrellmd.init b/package/gkrellm/files/gkrellmd.init
index 54c42665c..f22ecc103 100644
--- a/package/gkrellm/files/gkrellmd.init
+++ b/package/gkrellm/files/gkrellmd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${gkrellmd:-NO}" = x"NO" && exit 0
+ test x"$gkrellmd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/gmediaserver/files/gmediaserver.init b/package/gmediaserver/files/gmediaserver.init
index c9b932249..47766d64d 100644
--- a/package/gmediaserver/files/gmediaserver.init
+++ b/package/gmediaserver/files/gmediaserver.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${gmediaserver:-NO}" = x"NO" && exit 0
+ test x"$gmediaserver" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/gpm/files/gpm.init b/package/gpm/files/gpm.init
index 95565a1fa..e1dad94d0 100644
--- a/package/gpm/files/gpm.init
+++ b/package/gpm/files/gpm.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${gpm:-NO}" = x"NO" && exit 0
+ test x"$gpm" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/heimdal/files/heimdal.init b/package/heimdal/files/heimdal.init
index 79bb10198..b62d3e7af 100644
--- a/package/heimdal/files/heimdal.init
+++ b/package/heimdal/files/heimdal.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${kdc:-NO}" = x"NO" && exit 0
+ test x"$kdc" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/htpdate/files/htpdate.init b/package/htpdate/files/htpdate.init
index f79531f20..6047ac6e2 100644
--- a/package/htpdate/files/htpdate.init
+++ b/package/htpdate/files/htpdate.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${htpdate:-NO}" = x"NO" && exit 0
+ test x"$htpdate" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/igmpproxy/files/igmpproxy.init b/package/igmpproxy/files/igmpproxy.init
index 48ce1556d..45f895c41 100644
--- a/package/igmpproxy/files/igmpproxy.init
+++ b/package/igmpproxy/files/igmpproxy.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${igmpproxy:-NO}" = x"NO" && exit 0
+ test x"$igmpproxy" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/iptables/files/firewall.init b/package/iptables/files/firewall.init
index b3ea698d6..29fed9323 100755
--- a/package/iptables/files/firewall.init
+++ b/package/iptables/files/firewall.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${firewall:-NO}" = x"NO" && exit 0
+ test x"$firewall" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/iptables/files/firewall6.init b/package/iptables/files/firewall6.init
index 162b98a4f..55631ecc9 100755
--- a/package/iptables/files/firewall6.init
+++ b/package/iptables/files/firewall6.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${firewall6:-NO}" = x"NO" && exit 0
+ test x"$firewall6" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/kbd/files/kbd.init b/package/kbd/files/kbd.init
index 3745e67d0..99bb56b00 100644
--- a/package/kbd/files/kbd.init
+++ b/package/kbd/files/kbd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${kbd:-NO}" = x"NO" && exit 0
+ test x"$kbd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/krb5/files/krb5.init b/package/krb5/files/krb5.init
index 977110e51..cb6de4d8b 100644
--- a/package/krb5/files/krb5.init
+++ b/package/krb5/files/krb5.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${kdc:-NO}" = x"NO" && exit 0
+ test x"$kdc" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/libvirt/files/libvirt.init b/package/libvirt/files/libvirt.init
index fe83686dc..d02a2a296 100755
--- a/package/libvirt/files/libvirt.init
+++ b/package/libvirt/files/libvirt.init
@@ -6,7 +6,8 @@
case $1 in
autostop) ;;
autostart)
- test x"$libvirtd" = x"NO" && exit 0
+ test x"${libvirtd:-NO}" = x"NO" && exit 0
+ test x"$libvirtd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/lighttpd/files/lighttpd.init b/package/lighttpd/files/lighttpd.init
index fa2b203ee..90b41296f 100644
--- a/package/lighttpd/files/lighttpd.init
+++ b/package/lighttpd/files/lighttpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${lighttpd:-NO}" = x"NO" && exit 0
+ test x"$lighttpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/maradns/files/maradns.init b/package/maradns/files/maradns.init
index e8f21dd0c..422728165 100644
--- a/package/maradns/files/maradns.init
+++ b/package/maradns/files/maradns.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${maradns:-NO}" = x"NO" && exit 0
+ test x"$maradns" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/miau/files/miau.init b/package/miau/files/miau.init
index 320a681c2..988e690ce 100755
--- a/package/miau/files/miau.init
+++ b/package/miau/files/miau.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${miau:-NO}" = x"NO" && exit 0
+ test x"$miau" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/mini_httpd/files/mini_httpd.init b/package/mini_httpd/files/mini_httpd.init
index 4737c4b35..04deeb412 100644
--- a/package/mini_httpd/files/mini_httpd.init
+++ b/package/mini_httpd/files/mini_httpd.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${mini_httpd:-NO}" = x"NO" && exit 0
+ test x"$mini_httpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/miredo/files/miredo-server.init b/package/miredo/files/miredo-server.init
index 09076ed43..03fccdee3 100644
--- a/package/miredo/files/miredo-server.init
+++ b/package/miredo/files/miredo-server.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${miredo-server:-NO}" = x"NO" && exit 0
+ test x"$miredo-server" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/miredo/files/miredo.init b/package/miredo/files/miredo.init
index 39f53ecde..8d83a215a 100644
--- a/package/miredo/files/miredo.init
+++ b/package/miredo/files/miredo.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${miredo:-NO}" = x"NO" && exit 0
+ test x"$miredo" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/monit/files/monit.init b/package/monit/files/monit.init
index b0d1f1f73..1136daf9e 100644
--- a/package/monit/files/monit.init
+++ b/package/monit/files/monit.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${monit:-NO}" = x"NO" && exit 0
+ test x"$monit" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/motion/files/motion.init b/package/motion/files/motion.init
index 1c8b7e705..66115f67f 100644
--- a/package/motion/files/motion.init
+++ b/package/motion/files/motion.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${motion:-NO}" = x"NO" && exit 0
+ test x"$motion" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/mpd/files/mpd.init b/package/mpd/files/mpd.init
index 2e39cf82e..1e8fe21df 100644
--- a/package/mpd/files/mpd.init
+++ b/package/mpd/files/mpd.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${mpd:-NO}" = x"NO" && exit 0
+ test x"$mpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/mrd6/files/mrd6.init b/package/mrd6/files/mrd6.init
index 8ada9352d..4502f6bd3 100644
--- a/package/mrd6/files/mrd6.init
+++ b/package/mrd6/files/mrd6.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${mrd6:-NO}" = x"NO" && exit 0
+ test x"$mrd6" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/mt-daapd/files/mt-daapd.init b/package/mt-daapd/files/mt-daapd.init
index d150807a5..69093e50b 100644
--- a/package/mt-daapd/files/mt-daapd.init
+++ b/package/mt-daapd/files/mt-daapd.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${mt_daapd:-NO}" = x"NO" && exit 0
+ test x"$mt_daapd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/net-snmp/files/snmpd.init b/package/net-snmp/files/snmpd.init
index 5cb41c13b..1f4358f60 100644
--- a/package/net-snmp/files/snmpd.init
+++ b/package/net-snmp/files/snmpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${snmpd:-NO}" = x"NO" && exit 0
+ test x"$snmpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/netperf/files/netserver.init b/package/netperf/files/netserver.init
index e1717b5ba..1988f6109 100644
--- a/package/netperf/files/netserver.init
+++ b/package/netperf/files/netserver.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${netserver:-NO}" = x"NO" && exit 0
+ test x"$netserver" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/nfs-utils/files/nfs.init b/package/nfs-utils/files/nfs.init
index 4dc0cd70d..4f4d7d96d 100644
--- a/package/nfs-utils/files/nfs.init
+++ b/package/nfs-utils/files/nfs.init
@@ -8,6 +8,7 @@ autostop) ;;
autostart)
test x"${rpcbind:-NO}" = x"NO" && exit 0
test x"${nfs_client:-NO}" = x"NO" && exit 0
+ test x"$nfs_client" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/nfs-utils/files/nfsd.init b/package/nfs-utils/files/nfsd.init
index f744919aa..fddefafc1 100644
--- a/package/nfs-utils/files/nfsd.init
+++ b/package/nfs-utils/files/nfsd.init
@@ -8,6 +8,7 @@ autostop) ;;
autostart)
test x"${rpcbind:-NO}" = x"NO" && exit 0
test x"${nfs_server:-NO}" = x"NO" && exit 0
+ test x"$nfs_server" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/nginx/files/nginx.init b/package/nginx/files/nginx.init
index 0b7ee5fd2..4bb61479a 100644
--- a/package/nginx/files/nginx.init
+++ b/package/nginx/files/nginx.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${nginx:-NO}" = x"NO" && exit 0
+ test x"$nginx" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/nut/files/upsd.init b/package/nut/files/upsd.init
index 159a2fc00..0d451d1ad 100644
--- a/package/nut/files/upsd.init
+++ b/package/nut/files/upsd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${upsd:-NO}" = x"NO" && exit 0
+ test x"$upsd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/olsrd/files/olsrd.init b/package/olsrd/files/olsrd.init
index 965e14d2b..9296b2b11 100644
--- a/package/olsrd/files/olsrd.init
+++ b/package/olsrd/files/olsrd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${olsrd:-NO}" = x"NO" && exit 0
+ test x"$olsrd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/openct/files/openct.init b/package/openct/files/openct.init
index cf6691fa5..a2a3ea402 100644
--- a/package/openct/files/openct.init
+++ b/package/openct/files/openct.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${openct:-NO}" = x"NO" && exit 0
+ test x"$openct" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/openldap/files/slapd.init b/package/openldap/files/slapd.init
index f026bfef4..8f43b1573 100644
--- a/package/openldap/files/slapd.init
+++ b/package/openldap/files/slapd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${slapd:-NO}" = x"NO" && exit 0
+ test x"$slapd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/openntpd/files/ntpd.init b/package/openntpd/files/ntpd.init
index 149c5f0e4..02239f318 100644
--- a/package/openntpd/files/ntpd.init
+++ b/package/openntpd/files/ntpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${ntpd:-NO}" = x"NO" && exit 0
+ test x"$ntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/opensips/files/opensips.init b/package/opensips/files/opensips.init
index c0567b694..c84e54d1f 100644
--- a/package/opensips/files/opensips.init
+++ b/package/opensips/files/opensips.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${opensips:-NO}" = x"NO" && exit 0
+ test x"$opensips" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/openssh/files/sshd.init b/package/openssh/files/sshd.init
index 5953abef2..d9adb5f25 100644
--- a/package/openssh/files/sshd.init
+++ b/package/openssh/files/sshd.init
@@ -12,6 +12,7 @@ autostart)
echo openssh not starting: set to AUTO and dropbear is enabled
exit 0
fi
+ test x"$openssh" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/openswan/files/openswan.init b/package/openswan/files/openswan.init
index f1fd658e1..ec305538c 100644
--- a/package/openswan/files/openswan.init
+++ b/package/openswan/files/openswan.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${ipsec:-NO}" = x"NO" && exit 0
+ test x"$ipsec" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/openvpn/files/openvpn.init b/package/openvpn/files/openvpn.init
index abea61328..ee7f1392c 100644
--- a/package/openvpn/files/openvpn.init
+++ b/package/openvpn/files/openvpn.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${openvpn:-NO}" = x"NO" && exit 0
+ test x"$openvpn" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/p910nd/files/p910nd.init b/package/p910nd/files/p910nd.init
index d029edd96..d46c7cf8f 100644
--- a/package/p910nd/files/p910nd.init
+++ b/package/p910nd/files/p910nd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${p910nd:-NO}" = x"NO" && exit 0
+ test x"$p910nd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/parprouted/files/parprouted.init b/package/parprouted/files/parprouted.init
index 0c3885892..44e5c85f9 100644
--- a/package/parprouted/files/parprouted.init
+++ b/package/parprouted/files/parprouted.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${parprouted:-NO}" = x"NO" && exit 0
+ test x"$parprouted" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/pcsc-lite/files/pcscd.init b/package/pcsc-lite/files/pcscd.init
index c3e6c2d19..157d243fa 100644
--- a/package/pcsc-lite/files/pcscd.init
+++ b/package/pcsc-lite/files/pcscd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${pcscd:-NO}" = x"NO" && exit 0
+ test x"$pcscd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/pdnsd/files/pdnsd.init b/package/pdnsd/files/pdnsd.init
index d9fa793b9..5d6111e69 100644
--- a/package/pdnsd/files/pdnsd.init
+++ b/package/pdnsd/files/pdnsd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${pdnsd:-NO}" = x"NO" && exit 0
+ test x"$pdnsd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/php/files/php.init b/package/php/files/php.init
index 6d566d960..6650b6f8a 100644
--- a/package/php/files/php.init
+++ b/package/php/files/php.init
@@ -9,6 +9,7 @@ case $1 in
autostop) ;;
autostart)
test x"${php:-NO}" = x"NO" && exit 0
+ test x"$php" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/pmacct/files/nfacctd.init b/package/pmacct/files/nfacctd.init
index 5acd849b4..bae6be494 100644
--- a/package/pmacct/files/nfacctd.init
+++ b/package/pmacct/files/nfacctd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${nfacctd:-NO}" = x"NO" && exit 0
+ test x"$nfacctd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/pmacct/files/pmacctd.init b/package/pmacct/files/pmacctd.init
index d56a01330..d3f5a3017 100644
--- a/package/pmacct/files/pmacctd.init
+++ b/package/pmacct/files/pmacctd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${pmacctd:-NO}" = x"NO" && exit 0
+ test x"$pmacctd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/polipo/files/polipo.init b/package/polipo/files/polipo.init
index 636159337..bc263466c 100644
--- a/package/polipo/files/polipo.init
+++ b/package/polipo/files/polipo.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${polipo:-NO}" = x"NO" && exit 0
+ test x"$polipo" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/postfix/files/postfix.init b/package/postfix/files/postfix.init
index a4eb13c79..e0067404a 100644
--- a/package/postfix/files/postfix.init
+++ b/package/postfix/files/postfix.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${postfix:-NO}" = x"NO" && exit 0
+ test x"$postfix" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/pptpd/files/pptpd.init b/package/pptpd/files/pptpd.init
index da15ab87a..9c18dbd87 100644
--- a/package/pptpd/files/pptpd.init
+++ b/package/pptpd/files/pptpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${pptpd:-NO}" = x"NO" && exit 0
+ test x"$pptpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/privoxy/files/privoxy.init b/package/privoxy/files/privoxy.init
index 2254ee1c6..eb0c77d5a 100644
--- a/package/privoxy/files/privoxy.init
+++ b/package/privoxy/files/privoxy.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${privoxy:-NO}" = x"NO" && exit 0
+ test x"$privoxy" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/pulseaudio/files/pulseaudio.init b/package/pulseaudio/files/pulseaudio.init
index 584a42350..b895da787 100644
--- a/package/pulseaudio/files/pulseaudio.init
+++ b/package/pulseaudio/files/pulseaudio.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${pulseaudio:-NO}" = x"NO" && exit 0
+ test x"$pulseaudio" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/quagga/files/quagga.init b/package/quagga/files/quagga.init
index 498287051..b5147b7bc 100644
--- a/package/quagga/files/quagga.init
+++ b/package/quagga/files/quagga.init
@@ -111,6 +111,7 @@ esac
case ${COMMAND} in
autostart)
test x"${quagga:-NO}" = x"NO" && exit 0
+ test x"$quagga" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start|restart|watchrestart)
diff --git a/package/radvd/files/radvd.init b/package/radvd/files/radvd.init
index c3fd8b0ab..383c87e9f 100644
--- a/package/radvd/files/radvd.init
+++ b/package/radvd/files/radvd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${radvd:-NO}" = x"NO" && exit 0
+ test x"$radvd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/rarpd/files/rarpd.init b/package/rarpd/files/rarpd.init
index e43ad30d7..47f6f66c5 100644
--- a/package/rarpd/files/rarpd.init
+++ b/package/rarpd/files/rarpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${rarpd:-NO}" = x"NO" && exit 0
+ test x"$rarpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/reaim/files/reaim.init b/package/reaim/files/reaim.init
index 8ad5f87f0..dafe7caa6 100644
--- a/package/reaim/files/reaim.init
+++ b/package/reaim/files/reaim.init
@@ -10,6 +10,7 @@ case $1 in
autostop) ;;
autostart)
test x"${reaim:-NO}" = x"NO" && exit 0
+ test x"$reaim" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/rng-tools/files/rngd.init b/package/rng-tools/files/rngd.init
index 7284de0aa..740c5ead7 100644
--- a/package/rng-tools/files/rngd.init
+++ b/package/rng-tools/files/rngd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${rngd:-NO}" = x"NO" && exit 0
+ test x"$rngd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/rp-pppoe/files/pppoe-client.init b/package/rp-pppoe/files/pppoe-client.init
index 7e342fc59..9dd9c597e 100644
--- a/package/rp-pppoe/files/pppoe-client.init
+++ b/package/rp-pppoe/files/pppoe-client.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${pppoe_client:-NO}" = x"NO" && exit 0
+ test x"$pppoe_client" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/rp-pppoe/files/pppoe-relay.init b/package/rp-pppoe/files/pppoe-relay.init
index b7e6d5d11..f298f02f5 100644
--- a/package/rp-pppoe/files/pppoe-relay.init
+++ b/package/rp-pppoe/files/pppoe-relay.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${pppoe_relay:-NO}" = x"NO" && exit 0
+ test x"$pppoe_relay" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/rp-pppoe/files/pppoe-server.init b/package/rp-pppoe/files/pppoe-server.init
index 71f8b82aa..331048593 100644
--- a/package/rp-pppoe/files/pppoe-server.init
+++ b/package/rp-pppoe/files/pppoe-server.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${pppoe_server:-NO}" = x"NO" && exit 0
+ test x"$pppoe_server" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/rpcbind/files/rpcbind.init b/package/rpcbind/files/rpcbind.init
index 4f527b96b..42c527c90 100644
--- a/package/rpcbind/files/rpcbind.init
+++ b/package/rpcbind/files/rpcbind.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${rpcbind:-NO}" = x"NO" && exit 0
+ test x"$rpcbind" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/rrdcollect/files/rrdcollect.init b/package/rrdcollect/files/rrdcollect.init
index c959d6845..8b63bb4ee 100644
--- a/package/rrdcollect/files/rrdcollect.init
+++ b/package/rrdcollect/files/rrdcollect.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${rrdcollect:-NO}" = x"NO" && exit 0
+ test x"$rrdcollect" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/samba/files/samba.init b/package/samba/files/samba.init
index d97ad073e..b7e370484 100644
--- a/package/samba/files/samba.init
+++ b/package/samba/files/samba.init
@@ -6,7 +6,8 @@
case $1 in
autostop) ;;
autostart)
- test x"$samba" = x"NO" && exit 0
+ test x"${samba:-NO}" = x"NO" && exit 0
+ test x"$samba" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/scanlogd/files/scanlogd.init b/package/scanlogd/files/scanlogd.init
index ca7109978..27299da01 100644
--- a/package/scanlogd/files/scanlogd.init
+++ b/package/scanlogd/files/scanlogd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${scanlogd:-NO}" = x"NO" && exit 0
+ test x"$scanlogd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/shorewall-common/files/shorewall.init b/package/shorewall-common/files/shorewall.init
index b143fbda4..5c5a4660a 100644
--- a/package/shorewall-common/files/shorewall.init
+++ b/package/shorewall-common/files/shorewall.init
@@ -6,7 +6,8 @@
case $1 in
autostop) ;;
autostart)
- test x"$shorewall" != x"YES" && exit 0
+ test x"${shorewall:-NO}" != x"YES" && exit 0
+ test x"$shorewall" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/siproxd/files/siproxd.init b/package/siproxd/files/siproxd.init
index 6b6877ff2..b00a633fb 100644
--- a/package/siproxd/files/siproxd.init
+++ b/package/siproxd/files/siproxd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${siproxd:-NO}" = x"NO" && exit 0
+ test x"$siproxd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/snort/files/snort.init b/package/snort/files/snort.init
index 7de318343..13a5e302c 100644
--- a/package/snort/files/snort.init
+++ b/package/snort/files/snort.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${snort:-NO}" = x"NO" && exit 0
+ test x"$snort" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/squeezelite/files/squeezelite.init b/package/squeezelite/files/squeezelite.init
index 933b81ab5..562abf1a1 100644
--- a/package/squeezelite/files/squeezelite.init
+++ b/package/squeezelite/files/squeezelite.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${squeezelite:-NO}" = x"NO" && exit 0
+ test x"$squeezelite" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/squid/files/squid.init b/package/squid/files/squid.init
index 120d006c7..df7268f22 100644
--- a/package/squid/files/squid.init
+++ b/package/squid/files/squid.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${squid:-NO}" = x"NO" && exit 0
+ test x"$squid" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/srelay/files/srelay.init b/package/srelay/files/srelay.init
index 8b1c24428..68fa6dee7 100644
--- a/package/srelay/files/srelay.init
+++ b/package/srelay/files/srelay.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${srelay:-NO}" = x"NO" && exit 0
+ test x"$srelay" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/strongswan/files/strongswan.init b/package/strongswan/files/strongswan.init
index b4854d20d..b4cdbf3c1 100644
--- a/package/strongswan/files/strongswan.init
+++ b/package/strongswan/files/strongswan.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${ipsec:-NO}" = x"NO" && exit 0
+ test x"$ipsec" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/subversion/files/svnserve.init b/package/subversion/files/svnserve.init
index 4d7270a5f..40ef539f0 100644
--- a/package/subversion/files/svnserve.init
+++ b/package/subversion/files/svnserve.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${svnserve:-NO}" = x"NO" && exit 0
+ test x"$svnserve" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/syslog-ng/files/syslog-ng.init b/package/syslog-ng/files/syslog-ng.init
index 488de081a..ef39eab76 100644
--- a/package/syslog-ng/files/syslog-ng.init
+++ b/package/syslog-ng/files/syslog-ng.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${syslog_ng:-NO}" = x"NO" && exit 0
+ test x"$syslog_ng" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/tinyproxy/files/tinyproxy.init b/package/tinyproxy/files/tinyproxy.init
index b43a9f5e8..46cc6ee5a 100644
--- a/package/tinyproxy/files/tinyproxy.init
+++ b/package/tinyproxy/files/tinyproxy.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${tinyproxy:-NO}" = x"NO" && exit 0
+ test x"$tinyproxy" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/tntnet/files/tntnet.init b/package/tntnet/files/tntnet.init
index e7e2e19c7..01bb7a00b 100644
--- a/package/tntnet/files/tntnet.init
+++ b/package/tntnet/files/tntnet.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${tntnet:-NO}" = x"NO" && exit 0
+ test x"$tntnet" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/tor/files/tor.init b/package/tor/files/tor.init
index 8282aa65d..ed228d250 100644
--- a/package/tor/files/tor.init
+++ b/package/tor/files/tor.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${tor:-NO}" = x"NO" && exit 0
+ test x"$tor" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/totd/files/totd.init b/package/totd/files/totd.init
index 665e36171..cd3c5fc83 100755
--- a/package/totd/files/totd.init
+++ b/package/totd/files/totd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${totd:-NO}" = x"NO" && exit 0
+ test x"$totd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/ulogd/files/ulogd.init b/package/ulogd/files/ulogd.init
index cd4f92449..3d07f9b5f 100644
--- a/package/ulogd/files/ulogd.init
+++ b/package/ulogd/files/ulogd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${ulogd:-NO}" = x"NO" && exit 0
+ test x"$ulogd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/uvd/files/uvd.init b/package/uvd/files/uvd.init
index 078249549..6553bbbe3 100644
--- a/package/uvd/files/uvd.init
+++ b/package/uvd/files/uvd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${uvd:-NO}" = x"NO" && exit 0
+ test x"$uvd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/vrrpd/files/vrrpd.init b/package/vrrpd/files/vrrpd.init
index 7a09ffd5c..d58110638 100644
--- a/package/vrrpd/files/vrrpd.init
+++ b/package/vrrpd/files/vrrpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${vrrpd:-NO}" = x"NO" && exit 0
+ test x"$vrrpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/vsftpd/files/vsftpd.init b/package/vsftpd/files/vsftpd.init
index 1400a22fd..45c435265 100644
--- a/package/vsftpd/files/vsftpd.init
+++ b/package/vsftpd/files/vsftpd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${vsftpd:-NO}" = x"NO" && exit 0
+ test x"$vsftpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/watchdog/files/watchdog.init b/package/watchdog/files/watchdog.init
index 6261639fe..12763e565 100644
--- a/package/watchdog/files/watchdog.init
+++ b/package/watchdog/files/watchdog.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${watchdog:-NO}" = x"NO" && exit 0
+ test x"$watchdog" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/wifidog/files/wifidog.init b/package/wifidog/files/wifidog.init
index f383c2a24..62afe7373 100644
--- a/package/wifidog/files/wifidog.init
+++ b/package/wifidog/files/wifidog.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${wifidog:-NO}" = x"NO" && exit 0
+ test x"$wifidog" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/wondershaper/files/wondershaper.init b/package/wondershaper/files/wondershaper.init
index 39d846bd5..6212d47b9 100644
--- a/package/wondershaper/files/wondershaper.init
+++ b/package/wondershaper/files/wondershaper.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${wondershaper:-NO}" = x"NO" && exit 0
+ test x"$wondershaper" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/xbmc/files/xbmc.init b/package/xbmc/files/xbmc.init
index afb1fd9ac..bbe65c1c2 100644
--- a/package/xbmc/files/xbmc.init
+++ b/package/xbmc/files/xbmc.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${xbmc:-NO}" = x"NO" && exit 0
+ test x"$xbmc" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/xdm/files/xdm.init b/package/xdm/files/xdm.init
index 1bcce7df5..10b3b0716 100644
--- a/package/xdm/files/xdm.init
+++ b/package/xdm/files/xdm.init
@@ -8,6 +8,7 @@ case $1 in
autostop) ;;
autostart)
test x"${xdm:-NO}" = x"NO" && exit 0
+ test x"$xdm" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
diff --git a/package/xinetd/files/xinetd.init b/package/xinetd/files/xinetd.init
index 18ccbadac..dce1afe0b 100644
--- a/package/xinetd/files/xinetd.init
+++ b/package/xinetd/files/xinetd.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${xinetd:-NO}" = x"NO" && exit 0
+ test x"$xinetd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)