1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 03:11:32 +02:00

handle postinit for initramfs

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4601 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
groz 2006-08-18 19:39:51 +00:00
parent 3965ba8cd5
commit 4c66f72328

View File

@ -57,6 +57,7 @@ ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> $(LINUX_DIR)/.config echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> $(LINUX_DIR)/.config
mkdir -p $(BUILD_DIR)/root/etc/init.d mkdir -p $(BUILD_DIR)/root/etc/init.d
$(CP) ../generic-2.6/files/init $(BUILD_DIR)/root/ $(CP) ../generic-2.6/files/init $(BUILD_DIR)/root/
$(CP) ../generic-2.6/files/postinit $(BUILD_DIR)/root/
else else
rm -f $(BUILD_DIR)/root/init $(BUILD_DIR)/root/etc/init.d/S00initramfs rm -f $(BUILD_DIR)/root/init $(BUILD_DIR)/root/etc/init.d/S00initramfs
echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config