From 7d530507b6033d8e48e07cd111cde55c68837dbb Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 23 Nov 2007 16:44:07 +0000 Subject: zaurus-updater: use value from /proc/mtd to get rootfs size --- packages/zaurus-updater/zaurus-updater.bb | 2 +- packages/zaurus-updater/zaurus-updater/updater.sh | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/packages/zaurus-updater/zaurus-updater.bb b/packages/zaurus-updater/zaurus-updater.bb index f481348291..35ad16064c 100644 --- a/packages/zaurus-updater/zaurus-updater.bb +++ b/packages/zaurus-updater/zaurus-updater.bb @@ -1,7 +1,7 @@ DESCRIPTION = "Encrypted shellscript for the Zaurus ROM update" DEPENDS = "encdec-updater-native" LICENSE = "zaurus-updater" -PR = "r10" +PR = "r11" PACKAGES = "" PACKAGE_ARCH = "${MACHINE_ARCH}" 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 "\.*\<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 ;; -- cgit v1.2.3