diff options
-rw-r--r-- | package/busybox/Makefile | 11 | ||||
-rw-r--r-- | package/busybox/files/busybox.postinst | 13 |
2 files changed, 18 insertions, 6 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile index e3b766558..c75eb68bc 100644 --- a/package/busybox/Makefile +++ b/package/busybox/Makefile @@ -57,9 +57,20 @@ do-configure: do-build: $(MAKE) ${BB_MAKE_FLAGS} busybox +BBDEFS:=( +define BBDEF +ifeq ($(ADK_RUNTIME_START_BUSYBOX_$(1)),y) +BBDEFS+=echo BBDEF_$(1)=YES; +else +BBDEFS+=echo BBDEF_$(1)=NO; +endif +endef +$(foreach OPTION,NETWORK CROND WATCHDOG SYSLOGD INETD NTPD,$(call BBDEF,$(OPTION))) + do-install: $(MAKE) ${BB_MAKE_FLAGS} install $(MAKE_TRACE) $(CP) $(WRKINST)/* $(IDIR_BUSYBOX)/ + ${BBDEFS} :) >$(IDIR_BUSYBOX)/etc/.bb_defaults ifeq ($(BUSYBOX_IFUPDOWN),y) $(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/init.d $(INSTALL_BIN) ./files/network $(IDIR_BUSYBOX)/etc/init.d diff --git a/package/busybox/files/busybox.postinst b/package/busybox/files/busybox.postinst index 40d196c9a..bed51fb45 100644 --- a/package/busybox/files/busybox.postinst +++ b/package/busybox/files/busybox.postinst @@ -1,12 +1,13 @@ #!/bin/sh if [ -z $IPKG_INSTROOT ];then chmod u+s /bin/busybox;fi . $IPKG_INSTROOT/etc/functions.sh -add_rcconf network YES -add_rcconf crond NO -add_rcconf watchdog NO +. $IPKG_INSTROOT/etc/.bb_defaults +add_rcconf network ${BBDEF_NETWORK} +add_rcconf crond ${BBDEF_CROND} +add_rcconf watchdog ${BBDEF_WATCHDOG} add_rcconf watchdog_flags '-t 10 -T 20' -add_rcconf syslogd NO +add_rcconf syslogd ${BBDEF_SYSLOGD} add_rcconf syslogd_flags '-C32' -add_rcconf inetd NO -add_rcconf ntpd NO +add_rcconf inetd ${BBDEF_INETD} +add_rcconf ntpd ${BBDEF_NTPD} add_rcconf ntpd_flags '-p time.fu-berlin.de' |