diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-02-01 10:47:17 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-02-01 10:47:17 +0000 |
commit | 46225926c8c36b914ad7423bb7e6f36a42b92298 (patch) | |
tree | d61e3c02be52de8e16e9531c0ddb8f3d2c28f444 | |
parent | 64f38483d22a884bc34eb6d1200a2f92787bed12 (diff) |
move sysfs to mount_root
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3107 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/base-files/Makefile | 1 | ||||
-rwxr-xr-x | package/base-files/default/etc/preinit | 5 | ||||
-rwxr-xr-x | package/base-files/default/sbin/mount_root | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 958262761..e4753d045 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -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 diff --git a/package/base-files/default/etc/preinit b/package/base-files/default/etc/preinit index f82823ec9..ac9039ca7 100755 --- a/package/base-files/default/etc/preinit +++ b/package/base-files/default/etc/preinit @@ -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 diff --git a/package/base-files/default/sbin/mount_root b/package/base-files/default/sbin/mount_root index bd9b815e1..427ff0444 100755 --- a/package/base-files/default/sbin/mount_root +++ b/package/base-files/default/sbin/mount_root @@ -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 |