From ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 30 May 2009 20:39:07 +0200 Subject: optimize ipkg package management - generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig --- package/busybox/files/busybox.postinst | 6 ++++++ package/busybox/files/crond.init | 3 ++- package/busybox/files/inetd.init | 3 ++- package/busybox/files/network.init | 3 ++- package/busybox/files/syslog.init | 3 ++- 5 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 package/busybox/files/busybox.postinst (limited to 'package/busybox/files') diff --git a/package/busybox/files/busybox.postinst b/package/busybox/files/busybox.postinst new file mode 100644 index 000000000..97e83b766 --- /dev/null +++ b/package/busybox/files/busybox.postinst @@ -0,0 +1,6 @@ +#!/bin/sh +. $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 inetd diff --git a/package/busybox/files/crond.init b/package/busybox/files/crond.init index c0b9da9e4..208479c6d 100644 --- a/package/busybox/files/crond.init +++ b/package/busybox/files/crond.init @@ -1,5 +1,6 @@ #!/bin/sh -#FWINIT 60 +#PKG busybox +#INIT 60 . /etc/rc.conf case $1 in diff --git a/package/busybox/files/inetd.init b/package/busybox/files/inetd.init index ad0527e6a..ff041aed4 100644 --- a/package/busybox/files/inetd.init +++ b/package/busybox/files/inetd.init @@ -1,5 +1,6 @@ #!/bin/sh -#FWINIT 41 +#PKG busybox +#INIT 41 . /etc/rc.conf case $1 in autostart) diff --git a/package/busybox/files/network.init b/package/busybox/files/network.init index 0f3d4edad..ee70efcbf 100644 --- a/package/busybox/files/network.init +++ b/package/busybox/files/network.init @@ -1,5 +1,6 @@ #!/bin/sh -#FWINIT 40 +#PKG busybox +#INIT 40 . /etc/rc.conf case $1 in autostart) diff --git a/package/busybox/files/syslog.init b/package/busybox/files/syslog.init index e06283480..9552dfe0a 100644 --- a/package/busybox/files/syslog.init +++ b/package/busybox/files/syslog.init @@ -1,5 +1,6 @@ #!/bin/sh -#FWINIT 05 +#PKG busybox +#INIT 05 . /etc/rc.conf case $1 in -- cgit v1.2.3