diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-11-23 16:44:07 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-11-23 16:44:07 +0000 |
commit | 7d530507b6033d8e48e07cd111cde55c68837dbb (patch) | |
tree | 89e2bbfb30cfa18089435537659b475fef2c4d3b /packages/zaurus-updater/zaurus-updater | |
parent | 0efe118c3d17cd62f043e448d511ec3d8a2ae189 (diff) |
zaurus-updater: use value from /proc/mtd to get rootfs size
Diffstat (limited to 'packages/zaurus-updater/zaurus-updater')
-rw-r--r-- | packages/zaurus-updater/zaurus-updater/updater.sh | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/packages/zaurus-updater/zaurus-updater/updater.sh b/packages/zaurus-updater/zaurus-updater/updater.sh index 154ead0e28..703a1fb457 100644 --- a/packages/zaurus-updater/zaurus-updater/updater.sh +++ b/packages/zaurus-updater/zaurus-updater/updater.sh @@ -35,10 +35,8 @@ if [ "$RO_MTD_LINE" = "" ]; then RO_MTD_LINE=`cat /proc/mtd | grep "\<NAND\>.*\<2\>" | tail -n 1` fi RO_MTD_NO=`echo $RO_MTD_LINE | cut -d: -f1 | cut -dd -f2` -RO_MTD_SIZE_HEX=`echo $RO_MTD_LINE | cut -d" " -f2` RO_MTD=/dev/mtd$RO_MTD_NO - -echo "RO_MTD = $RO_MTD" +ROOTFS_SIZE=`echo $RO_MTD_LINE | cut -d" " -f2` LOGOCAL_MTD=/dev/mtd1 @@ -250,27 +248,18 @@ MODEL=`cat /proc/deviceinfo/product` case "$MODEL" in SL-B500|SL-5600) ZAURUS='poodle' - ROOTFS_SIZE=0x1600000 ;; SL-6000) ZAURUS='tosa' - ROOTFS_SIZE=0x1E00000 ;; SL-C1000) ZAURUS='akita' - ROOTFS_SIZE=0x1900000 - ;; - SL-C700|SL-C750|SL-7500) - ZAURUS='c7x0' - ROOTFS_SIZE=0x1900000 ;; - SL-C760|SL-C860) + SL-C700|SL-C750|SL-7500|SL-C760|SL-C860) ZAURUS='c7x0' - ROOTFS_SIZE=0x3500000 ;; SL-C3000|SL-C3100|SL-C3200) ZAURUS='c3x00' - ROOTFS_SIZE=0x0500000 check_for_hdd check_for_tar ;; |