blob: 7e9392a4a8770b58fefbb587e4291d4bbecefbb3 [file] [log] [blame]
#!/bin/sh
default="Disk /dev/mmcblk0: 7634944 sectors, 3.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
Partition table holds up to 128 entries
First usable sector is 64, last usable sector is 7634880
Partitions will be aligned on 2048-sector boundaries
Total free space is 556929 sectors (271.9 MiB)
Number Start (sector) End (sector) Size Code Name
16 36864 102399 32.0 MiB FFFF kernel0
17 102400 888831 384.0 MiB FFFF rootfs0
18 888832 954367 32.0 MiB FFFF kernel1
19 954368 1740799 384.0 MiB FFFF rootfs1
20 1740800 1871871 64.0 MiB FFFF emergency
21 1871872 7114751 2.5 GiB 8300 data+ext4"
gfhd254="Disk /dev/mmcblk0: 61071360 sectors, 29.1 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): BE51F469-09A6-4A05-9A3B-D09855D3E5A1
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 61071326
Partitions will be aligned on 2-sector boundaries
Total free space is 0 sectors (0 bytes)
Number Start (sector) End (sector) Size Code Name
1 34 161 64.0 KiB 8300 nvram
2 162 673 256.0 KiB 8300 bsu
3 674 2721 1024.0 KiB 8300 misc
4 2722 4769 1024.0 KiB 8300 hwcfg
5 4770 70305 32.0 MiB 8300 boot_a
6 70306 135841 32.0 MiB 8300 boot_b
7 135842 152225 8.0 MiB 8300 metadata
8 152226 156321 2.0 MiB 8300 eio
9 156322 4350625 2.0 GiB 8300 system_a
10 4350626 8544929 2.0 GiB 8300 system_b
11 8544930 8547873 1.4 MiB 8300 hnvram
12 8547874 8613409 32.0 MiB 8300 kernel0
13 8613410 9399841 384.0 MiB 8300 rootfs0
14 9399842 9465377 32.0 MiB 8300 kernel1
15 9465378 10251809 384.0 MiB 8300 rootfs1
16 10251810 10382881 64.0 MiB 8300 emergency
17 10382882 61071326 24.2 GiB 8300 userdata"
platform="$(cat $GINSTALL_PLATFORM_FILE)"
if [ "$platform" == "GFHD254" ]; then
echo "$gfhd254"
else
echo "$default"
fi