source: freewrt/target/linux/package/base-files/files/au1000-2.6/sbin/mount_root@ 475ad56

freewrt_1_0 freewrt_2_0
Last change on this file since 475ad56 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 529 bytes
Line 
1#!/bin/sh
2size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
3mount none /tmp -t tmpfs -o size=$size
4
5if [ "$1" != "failsafe" ]; then
6 mtd unlock filesystem
7 mount | grep jffs2 >&-
8 if [ $? = 0 ] ; then
9 if [ $(cat /proc/mtd | wc -l) = 6 ]; then
10 mtd erase filesystem
11 jffs2root --move
12 else
13 mount -o remount,rw /dev/root /
14 fi
15 else
16 . /bin/firstboot
17 fi
18fi
19
20mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
21mkdir -p /dev/pts
22mount none /dev/pts -t devpts
23mount -t sysfs none /sys 2>&-
Note: See TracBrowser for help on using the repository browser.