summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-11 09:29:18 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-11 09:29:18 +0200
commit394842d31c51cb642d7ed7a65948d15fd65985ce (patch)
tree2a04d2d18fcdb8b955d294b84c396f83183a103e /package
parente874f84fdb6eb83d905a72b35d87398374594b97 (diff)
fix some init scripts / postinst scripts
Diffstat (limited to 'package')
-rw-r--r--package/busybox/files/busybox.postinst2
-rw-r--r--package/dhcp-forwarder/files/dhcp-fwd.init2
-rw-r--r--package/gmediaserver/files/gmediaserver.postinst2
-rw-r--r--package/monit/files/monit.init6
-rw-r--r--package/monit/files/monit.postinst5
-rw-r--r--package/parprouted/files/parprouted.postinst2
-rw-r--r--package/rarpd/files/rarpd.postinst2
-rw-r--r--package/reaim/files/reaim.postinst2
8 files changed, 16 insertions, 7 deletions
diff --git a/package/busybox/files/busybox.postinst b/package/busybox/files/busybox.postinst
index 97e83b766..90ddf9d42 100644
--- a/package/busybox/files/busybox.postinst
+++ b/package/busybox/files/busybox.postinst
@@ -2,5 +2,5 @@
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf network network YES
add_rcconf crond crond NO
-add_rcconf 'use "-C16" normally, "NO" to disable' syslogd_flags '-C16'
+add_rcconf 'use "-C32" normally, "NO" to disable' syslogd_flags '-C32'
add_rcconf inetd
diff --git a/package/dhcp-forwarder/files/dhcp-fwd.init b/package/dhcp-forwarder/files/dhcp-fwd.init
index 70d499aba..8e6cda234 100644
--- a/package/dhcp-forwarder/files/dhcp-fwd.init
+++ b/package/dhcp-forwarder/files/dhcp-fwd.init
@@ -6,7 +6,7 @@
case $1 in
autostop) ;;
autostart)
- test x"${dhcp-fwd:-NO}" = x"NO" && exit 0
+ test x"${dhcp_fwd:-NO}" = x"NO" && exit 0
exec sh $0 start
;;
start)
diff --git a/package/gmediaserver/files/gmediaserver.postinst b/package/gmediaserver/files/gmediaserver.postinst
index 1d2338cb0..2d5d4d8ee 100644
--- a/package/gmediaserver/files/gmediaserver.postinst
+++ b/package/gmediaserver/files/gmediaserver.postinst
@@ -1,4 +1,4 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf gmediaserver gmediaserver NO
-add_rcconf gmediaserver_flags gmediaserver_flags "--background --interface=eth0.0"
+add_rcconf gmediaserver_flags gmediaserver_flags "--background --interface=eth0"
diff --git a/package/monit/files/monit.init b/package/monit/files/monit.init
index 91a7aca4b..712e7899b 100644
--- a/package/monit/files/monit.init
+++ b/package/monit/files/monit.init
@@ -6,7 +6,11 @@
case $1 in
autostop) ;;
-autostart|start)
+autostart)
+ test x"${monit:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
monit $monit_flags
;;
stop)
diff --git a/package/monit/files/monit.postinst b/package/monit/files/monit.postinst
new file mode 100644
index 000000000..fa7523993
--- /dev/null
+++ b/package/monit/files/monit.postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf monit monit NO
+add_rcconf monit_flags monit_flags NO
+
diff --git a/package/parprouted/files/parprouted.postinst b/package/parprouted/files/parprouted.postinst
index 5943ccc96..f46d2008c 100644
--- a/package/parprouted/files/parprouted.postinst
+++ b/package/parprouted/files/parprouted.postinst
@@ -1,4 +1,4 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf parprouted parprouted NO
-add_rcconf parprouted_flags parprouted_flags "eth0.1 eth1"
+add_rcconf parprouted_flags parprouted_flags "eth0"
diff --git a/package/rarpd/files/rarpd.postinst b/package/rarpd/files/rarpd.postinst
index ed21e9d6f..236340c46 100644
--- a/package/rarpd/files/rarpd.postinst
+++ b/package/rarpd/files/rarpd.postinst
@@ -1,4 +1,4 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf rarpd rarpd NO
-add_rcconf rarpd_flags rarpd_flags "-i eth0.0"
+add_rcconf rarpd_flags rarpd_flags "-i eth0"
diff --git a/package/reaim/files/reaim.postinst b/package/reaim/files/reaim.postinst
index 39c37b222..64f40e4bb 100644
--- a/package/reaim/files/reaim.postinst
+++ b/package/reaim/files/reaim.postinst
@@ -1,4 +1,4 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf reaim reaim NO
-add_rcconf reaim_flags reaim_flags "eth0.1"
+add_rcconf reaim_flags reaim_flags "eth0"