Changeset aab9e07 in freewrt for package/base-files/default/bin/firstboot
- 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/bin/firstboot (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/base-files/default/bin/firstboot
rbee7cba raab9e07 52 52 fopivot() { # <rw_root> <ro_root> <dupe?> 53 53 root=$1 54 { 55 mount -t mini_fo -o base=/,sto=$1 $1 /mnt 2>&- && root=/mnt 56 } || { 57 [ "$3" = "1" ] && mount -o bind $1 $1 && dupe $1 $rom 58 } 59 pivot $root $2 54 mount -t mini_fo -o base=/,sto=$1 $1 /mnt 2>&- && root=/mnt 55 pivot $root $2 60 56 } 61 57 … … 73 69 } 74 70 75 [ "$1" = "switch2jffs" ] && {76 mtd erase data77 mount -o remount,ro none / # try to avoid fs changing while copying78 mount -o bind / /mnt79 mount /dev/mtdblock/4 /rom/jffs -t jffs280 echo -n "copying files ... "81 cp -a /mnt/* /rom/jffs82 umount /mnt83 echo "done"84 pivot /rom /mnt85 mount -o move /mnt /tmp/root86 pivot /jffs /rom87 jffs2root --clean88 exit 089 }90 91 71 # script run manually 92 72 [ \! -z "$jffs" ] && {
Note:
See TracChangeset
for help on using the changeset viewer.
