diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-15 21:03:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-15 21:03:30 +0000 |
commit | 8612d336918b408fd3abd844ccb8189f0d64acc5 (patch) | |
tree | dd043a8580746d6ee54912206a873228401c12f7 /package/Makefile | |
parent | 6f8a93af7ef4eafdd3d6f678398e6f5df2a5560d (diff) | |
download | mtk-20170518-8612d336918b408fd3abd844ccb8189f0d64acc5.zip mtk-20170518-8612d336918b408fd3abd844ccb8189f0d64acc5.tar.gz mtk-20170518-8612d336918b408fd3abd844ccb8189f0d64acc5.tar.bz2 |
init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enable|disable) manages symlinks
SVN-Revision: 5128
Diffstat (limited to 'package/Makefile')
-rw-r--r-- | package/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/Makefile b/package/Makefile index 304343a..d1605af 100644 --- a/package/Makefile +++ b/package/Makefile @@ -55,6 +55,13 @@ install-targets: base-files-install $(INSTALL_PACKAGES) install: rm -rf $(BUILD_DIR)/root $(MAKE) install-targets + @( \ + cd $(BUILD_DIR)/root; \ + for script in ./etc/init.d/*; do \ + grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \ + IPKG_INSTROOT=$(BUILD_DIR)/root $(which bash) ./etc/rc.common $$script enable; \ + done; \ + ) index: $(PACKAGE_DIR)/Packages |