move sysfs to mount_root
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 1 Feb 2006 10:47:17 +0000 (10:47 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 1 Feb 2006 10:47:17 +0000 (10:47 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3107 3c298f89-4303-0410-b956-a3cf2f4a3e73

openwrt/package/base-files/Makefile
openwrt/package/base-files/default/etc/preinit
openwrt/package/base-files/default/sbin/mount_root

index 9582627..e4753d0 100644 (file)
@@ -55,6 +55,7 @@ $(IPKG_BASE):
        cp -a ./default/* $(IDIR_BASE)
        $(SED) 's,$$R,r$(REV),g' $(IDIR_BASE)/etc/banner
        $(SED) 's,$$S,$(BOARD)-$(KERNEL),g' $(IDIR_BASE)/etc/ipkg.conf
+       mkdir -p $(IDIR_BASE)/sys
        mkdir -p $(IDIR_BASE)/jffs
        mkdir -p $(IDIR_BASE)/dev
        mkdir -p $(IDIR_BASE)/proc
index f82823e..ac9039c 100755 (executable)
@@ -21,9 +21,4 @@ mount_root ${FAILSAFE:+failsafe}
        { mount|grep "on / type jffs2" 1>&-; } || firstboot
 }
 
-grep sysfs /proc/filesystems >&- 2>&- && {
-       mkdir -p /sys
-       mount -t sysfs none /sys
-}
-
 exec /sbin/init
index bd9b815..427ff04 100755 (executable)
@@ -37,3 +37,4 @@ fi
 mount none /tmp -t tmpfs -o nosuid,nodev,mode=1777,size=50%
 mkdir -p /dev/pts
 mount none /dev/pts -t devpts
+grep sysfs /proc/filesystems >&- && mount -t sysfs none /sys
This page took 0.029031 seconds and 4 git commands to generate.