Changeset aab9e07 in freewrt for package/base-files/default/sbin/mount_root
- Timestamp:
- Jul 22, 2006, 8:50:05 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 374cdc5
- Parents:
- bee7cba
- File:
-
- 1 edited
-
package/base-files/default/sbin/mount_root (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/base-files/default/sbin/mount_root
rbee7cba raab9e07 1 1 #!/bin/sh 2 is_dirty() {3 grep Broadcom /proc/cpuinfo >&- || return 14 OFFSET="$(($(hexdump -v /dev/mtdblock/1 -s 20 -n 2 -e '"%d"')-1))"5 return $(hexdump -v /dev/mtdblock/1 -s $OFFSET -n 1 -e '"%d"')6 }7 2 8 3 size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo) … … 21 16 else 22 17 . /bin/firstboot 23 is_dirty 24 [ $? != 0 ] && { 25 echo "switching to jffs2" 26 mount /dev/mtdblock/4 /jffs -t jffs2 27 fopivot /jffs /rom 28 } || { 29 echo "jffs2 unusable; using ramdisk" 30 ramoverlay 31 } 18 echo "switching to overlay filesystem" 19 mount /dev/mtdblock/4 /jffs -t jffs2 20 fopivot /jffs /rom 32 21 fi 33 22 fi … … 36 25 mkdir -p /dev/pts 37 26 mount none /dev/pts -t devpts 38 mount -t sysfs none /sys 2>&-
Note:
See TracChangeset
for help on using the changeset viewer.
