summaryrefslogtreecommitdiff
path: root/package/busybox/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-04-07 17:23:11 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-04-07 17:23:11 +0200
commitf3cc98651b738ac7f2dc56ea772afa9f874b9d3b (patch)
tree02fcb02d1a7db02e09355c88e5a4f66f54079d6f /package/busybox/files
parent5bcfd51dfd2fb526705540ec690e2798a3074e55 (diff)
allow to enable daemons on startup via menuconfig
Diffstat (limited to 'package/busybox/files')
-rw-r--r--package/busybox/files/busybox.postinst3
-rw-r--r--package/busybox/files/network (renamed from package/busybox/files/network.init)0
-rw-r--r--package/busybox/files/syslog.init33
-rw-r--r--package/busybox/files/udhcpd.init2
4 files changed, 3 insertions, 35 deletions
diff --git a/package/busybox/files/busybox.postinst b/package/busybox/files/busybox.postinst
index c71a536ce..d403ff481 100644
--- a/package/busybox/files/busybox.postinst
+++ b/package/busybox/files/busybox.postinst
@@ -5,7 +5,8 @@ add_rcconf network network YES
add_rcconf crond crond NO
add_rcconf watchdog watchdog NO
add_rcconf watchdog_flags watchdog_flags '-t 10 -T 20'
-add_rcconf 'use "-C32" normally, "NO" to disable' syslogd_flags '-C32'
+add_rcconf syslogd NO
+add_rcconf 'use "-C32" normally' syslogd_flags '-C32'
add_rcconf inetd inetd NO
add_rcconf ntpd ntpd NO
add_rcconf ntpd_flags ntpd_flags '-p time.fu-berlin.de'
diff --git a/package/busybox/files/network.init b/package/busybox/files/network
index 4989fcbcb..4989fcbcb 100644
--- a/package/busybox/files/network.init
+++ b/package/busybox/files/network
diff --git a/package/busybox/files/syslog.init b/package/busybox/files/syslog.init
deleted file mode 100644
index 7a85430ca..000000000
--- a/package/busybox/files/syslog.init
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-#PKG busybox
-#INIT 05
-. /etc/rc.conf
-
-case $1 in
-autostop) ;;
-autostart)
- test x"${syslogd_flags:-NO}" = x"NO" && exit 0
- exec sh $0 start
- ;;
-start)
- /sbin/syslogd $syslogd_flags
- if [ -f /proc/sys/kernel/printk ];then
- /sbin/klogd
- fi
- ;;
-stop)
- if [ -f /proc/sys/kernel/printk ];then
- kill $(pgrep -f /sbin/klogd)
- fi
- kill $(pgrep -f /sbin/syslogd)
- ;;
-restart)
- sh $0 stop
- sh $0 start
- ;;
-*)
- echo "Usage: $0 {start | stop | restart}"
- exit 1
- ;;
-esac
-exit $?
diff --git a/package/busybox/files/udhcpd.init b/package/busybox/files/udhcpd.init
index f626fb732..edec3ac91 100644
--- a/package/busybox/files/udhcpd.init
+++ b/package/busybox/files/udhcpd.init
@@ -1,5 +1,5 @@
#!/bin/sh
-#PKG udhcpd
+#PKG busybox
#INIT 50
. /etc/rc.conf