- Timestamp:
- Sep 30, 2006, 12:11:58 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- d496977
- Parents:
- 41b6d57
- Location:
- target/linux/brcm-2.4
- Files:
-
- 4 edited
-
asus-wl500g/files/etc/preinit.arch (modified) (1 diff)
-
jffs2/files/sbin/mount_root (modified) (1 diff)
-
squashfs-overlay/files/sbin/mount_root (modified) (1 diff)
-
squashfs-symlinks/files/sbin/mount_root (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
target/linux/brcm-2.4/asus-wl500g/files/etc/preinit.arch
r41b6d57 r727556d 1 1 #!/bin/sh 2 3 2 insmod diag 4 echo 0x01 >/proc/sys/diag -
target/linux/brcm-2.4/jffs2/files/sbin/mount_root
r41b6d57 r727556d 4 4 mount none /tmp -t tmpfs -o size=$size 5 5 6 if [ "$1" != "failsafe" ]; then 7 mtd unlock linux 8 # check if a data partition exist, if not remount / read-write 9 if [ $(grep data /proc/mtd|wc -l) = 1 ]; then 10 mtd erase data 11 jffs2root --move --reboot 12 else 13 mount -o remount,rw /dev/root / 14 fi 6 mtd unlock linux 7 # check if a data partition exist, if not remount / read-write 8 if [ $(grep data /proc/mtd|wc -l) = 1 ]; then 9 mtd erase data 10 jffs2root --move --reboot 11 else 12 mount -o remount,rw /dev/root / 15 13 fi 16 14 -
target/linux/brcm-2.4/squashfs-overlay/files/sbin/mount_root
r41b6d57 r727556d 54 54 mount none /tmp -t tmpfs -o size=$size 55 55 56 if [ "$1" != "failsafe" ]; then 57 mtd unlock linux 58 is_dirty 59 [ $? != 0 ] && { 60 echo "switching to overlay filesystem" 61 mount /dev/mtdblock/5 /jffs -t jffs2 62 mount -t mini_fo -o base=/,sto=/jffs /jffs /mnt 63 pivot /mnt /rom 64 } || { 65 echo "jffs2 unusable; using ramdisk" 66 mkdir -p /tmp/root 67 mountdp /tmp/root /mnt -o bind 68 } 69 fi 56 mtd unlock linux 57 is_dirty 58 [ $? != 0 ] && { 59 echo "switching to overlay filesystem" 60 mount /dev/mtdblock/5 /jffs -t jffs2 61 mount -t mini_fo -o base=/,sto=/jffs /jffs /mnt 62 pivot /mnt /rom 63 } || { 64 echo "jffs2 unusable; using ramdisk" 65 mkdir -p /tmp/root 66 mountdp /tmp/root /mnt -o bind 67 } 70 68 71 69 mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777 -
target/linux/brcm-2.4/squashfs-symlinks/files/sbin/mount_root
r41b6d57 r727556d 54 54 mount none /tmp -t tmpfs -o size=$size 55 55 56 if [ "$1" != "failsafe" ]; then 57 mtd unlock linux 58 is_dirty 59 [ $? != 0 ] && { 60 echo "switching to jffs2 filesystem" 61 mount -t jffs2 /dev/mtdblock/5 /jffs 62 pivot /jffs /rom 63 } || { 64 echo "jffs2 unusable; using ramdisk" 65 mkdir -p /tmp/root 66 mountdp /tmp/root /mnt -o bind 67 } 68 fi 56 mtd unlock linux 57 is_dirty 58 [ $? != 0 ] && { 59 echo "switching to jffs2 filesystem" 60 mount -t jffs2 /dev/mtdblock/5 /jffs 61 pivot /jffs /rom 62 } || { 63 echo "jffs2 unusable; using ramdisk" 64 mkdir -p /tmp/root 65 mountdp /tmp/root /mnt -o bind 66 } 69 67 70 68 mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
Note:
See TracChangeset
for help on using the changeset viewer.
