diff options
Diffstat (limited to 'target/linux/octeon/base-files/lib/upgrade')
-rwxr-xr-x | target/linux/octeon/base-files/lib/upgrade/platform.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh index 84533d642a..14b3eefe7e 100755 --- a/target/linux/octeon/base-files/lib/upgrade/platform.sh +++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh @@ -27,7 +27,8 @@ platform_copy_config_helper() { platform_copy_config() { case "$(board_name)" in - erlite) + erlite|\ + ubnt,usg) platform_copy_config_helper /dev/sda1 ;; itus,shield-router) @@ -91,7 +92,8 @@ platform_do_upgrade() { ubnt,edgerouter-6p) kernel=mmcblk0p1 ;; - erlite) + erlite|\ + ubnt,usg) kernel=sda1 ;; itus,shield-router) @@ -119,7 +121,8 @@ platform_check_image() { erlite | \ itus,shield-router | \ ubnt,edgerouter-4 | \ - ubnt,edgerouter-6p) + ubnt,edgerouter-6p | \ + ubnt,usg) 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 ] && { |