diff options
Diffstat (limited to 'target/linux/octeon/base-files/lib/upgrade/platform.sh')
-rwxr-xr-x | target/linux/octeon/base-files/lib/upgrade/platform.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh index 33a9931263..ad5baef4a1 100755 --- a/target/linux/octeon/base-files/lib/upgrade/platform.sh +++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh @@ -29,6 +29,11 @@ platform_copy_config() { cp -af "$UPGRADE_BACKUP" "/mnt/$BACKUP_FILE" umount /mnt ;; + ubnt,edgerouter-4) + mount -t vfat /dev/mmcblk0p1 /mnt + cp -af "$UPGRADE_BACKUP" "/mnt/$BACKUP_FILE" + umount /mnt + ;; esac } @@ -78,7 +83,8 @@ platform_do_upgrade() { [ -b "${rootfs}" ] || return 1 case "$board" in - er) + er | \ + ubnt,edgerouter-4) kernel=mmcblk0p1 ;; erlite) @@ -107,7 +113,8 @@ platform_check_image() { case "$board" in er | \ erlite | \ - itus,shield-router) + itus,shield-router | \ + ubnt,edgerouter-4) local kernel_length=$(tar xf $tar_file $board_dir/kernel -O | wc -c 2> /dev/null) local rootfs_length=$(tar xf $tar_file $board_dir/root -O | wc -c 2> /dev/null) [ "$kernel_length" = 0 -o "$rootfs_length" = 0 ] && { |