Changeset 727556d in freewrt for target


Ignore:
Timestamp:
Sep 30, 2006, 12:11:58 AM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
d496977
Parents:
41b6d57
Message:

fix falsafe for jffs2 and squashfs root, fix old nvram based network configuration

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@777 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
target/linux/brcm-2.4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • target/linux/brcm-2.4/asus-wl500g/files/etc/preinit.arch

    r41b6d57 r727556d  
    11#!/bin/sh
    2 
    32insmod diag
    4 echo 0x01 >/proc/sys/diag
  • target/linux/brcm-2.4/jffs2/files/sbin/mount_root

    r41b6d57 r727556d  
    44mount none /tmp -t tmpfs -o size=$size
    55
    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
     6mtd unlock linux
     7# check if a data partition exist, if not remount / read-write
     8if [ $(grep data /proc/mtd|wc -l) = 1 ]; then
     9        mtd erase data
     10        jffs2root --move --reboot
     11else
     12        mount -o remount,rw /dev/root /
    1513fi
    1614
  • target/linux/brcm-2.4/squashfs-overlay/files/sbin/mount_root

    r41b6d57 r727556d  
    5454mount none /tmp -t tmpfs -o size=$size
    5555
    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
     56mtd unlock linux
     57is_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}
    7068
    7169mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
  • target/linux/brcm-2.4/squashfs-symlinks/files/sbin/mount_root

    r41b6d57 r727556d  
    5454mount none /tmp -t tmpfs -o size=$size
    5555
    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
     56mtd unlock linux
     57is_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}
    6967
    7068mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
Note: See TracChangeset for help on using the changeset viewer.