/etc/config/wireless support for madwifi (work in progress)
[openwrt.git] / package / busybox / Makefile
index f56d246..0c1efc4 100644 (file)
@@ -21,18 +21,24 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 
 include $(INCLUDE_DIR)/package.mk
 
+init-y :=
+init-$(CONFIG_BUSYBOX_CONFIG_HTTPD) += httpd
+init-$(CONFIG_BUSYBOX_CONFIG_CROND) += cron
+init-$(CONFIG_BUSYBOX_CONFIG_TELNETD) += telnet
+
 define Package/busybox
   SECTION:=base
   CATEGORY:=Base system
-  DEFAULT:=y
   TITLE:=Core utilities for embedded Linux
-  DESCRIPTION:=\
-       The Swiss Army Knife of embedded Linux. \\\
-       It slices, it dices, it makes Julian Fries.
   URL:=http://busybox.net/
   MENU:=1
 endef
 
+define Package/busybox/description
+The Swiss Army Knife of embedded Linux.
+       It slices, it dices, it makes Julian Fries.
+endef
+
 define Package/busybox/config
        menu "Configuration"
                depends on PACKAGE_busybox
@@ -65,6 +71,10 @@ define Package/busybox/install
                IPKG_ARCH="$(ARCH)" \
                PREFIX="$(1)" \
                install
+       mkdir -p $(1)/etc/init.d
+       for tmp in $(init-y); do \
+               $(INSTALL_BIN) ./files/$$$$tmp $(1)/etc/init.d/$$$$tmp; \
+       done
        -rm -rf $(1)/lib64
 endef
 
This page took 0.025083 seconds and 4 git commands to generate.