diff options
Diffstat (limited to 'package/base-files/src')
-rwxr-xr-x | package/base-files/src/sbin/adkupdate | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/src/sbin/adkupdate b/package/base-files/src/sbin/adkupdate index d41e23a0f..db1dfb73a 100755 --- a/package/base-files/src/sbin/adkupdate +++ b/package/base-files/src/sbin/adkupdate @@ -12,6 +12,8 @@ else updatecmd="gunzip -c | tar -xf -" fi +system=$(awk '/system type/ { print $5 }' /proc/cpuinfo 2>/dev/null) + check_exit() { if [ $? -ne 0 ];then echo "Update failed." @@ -23,6 +25,9 @@ prepare() { cd / umount -f /etc mount -o remount,rw / + if [ "$system" == "RB532" ];then + mount -t yaffs2 /dev/mtdblock0 /boot + fi } extract_from_file() { |