OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 6... Line 6...
6   6  
Line 7... Line 7...
7 . /lib/upgrade/common.sh 7 . /lib/upgrade/common.sh
8   8  
9 if export_bootdevice && export_partdevice partdev 1; then 9 if export_bootdevice && export_partdevice partdev 1; then
10 mkdir -p /boot 10 mkdir -p /boot
-   11 if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then
11 mount -t ext4 -o rw,noatime "/dev/$partdev" /boot 12 if [ -f /boot/sysupgrade.tgz ]; then
-   13 mount /boot -o remount,rw,noatime
-   14 mv -f /boot/sysupgrade.tgz /
-   15 mount /boot -o remount,ro,noatime
12 if [ -f /boot/sysupgrade.tgz ]; then 16 fi
13 mv -f /boot/sysupgrade.tgz / -  
14 fi 17 mount --bind /boot/boot /boot
15 mount --bind /boot/boot /boot 18 fi
Line 16... Line 19...
16 fi 19 fi
-   20 }