X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d429de78cafac72146839e55d30cd76273934858..ed44d0003fc99234e16251414b0e32b767c3f41f:/openwrt/package/base-files/default/sbin/mount_root diff --git a/openwrt/package/base-files/default/sbin/mount_root b/openwrt/package/base-files/default/sbin/mount_root index e855b41a1..427ff0444 100755 --- a/openwrt/package/base-files/default/sbin/mount_root +++ b/openwrt/package/base-files/default/sbin/mount_root @@ -30,10 +30,11 @@ if [ "$1" != "failsafe" ]; then pivot_root /jffs /jffs/rom mount none /proc -t proc mount none /dev -t devfs - umount /rom/proc rom/dev >&- + umount /rom/proc /rom/dev >&- fi fi 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