We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f1e45b commit 241da8cCopy full SHA for 241da8c
2 files changed
Examples/Raspbian/nc-helpers/nc-helpers.tar
0 Bytes
Helpers/nc-get-label
@@ -9,7 +9,9 @@ imagefolder=`sed -n "s/.*\"imagefolder\".*:.*\"\(.*\)\".*/\1/p" </boot/os_config
9
flavour=`sed -n "s/.*\"flavour\".*:.*\"\(.*\)\".*/\1/p" </boot/os_config.json |sed "s/ \+/_/g"`
10
11
#Get the list of partition names used
12
+sudo mount -o ro /dev/mmcblk0p1 /mnt
13
partLabels=`sed -n "s/.*\"label\".*:.*\"\(.*\)\".*/\1/p" <$imagefolder/partitions.json`
14
+sudo umount /mnt
15
16
#Get the number of partitions used.
17
numparts=`echo $partLabels |wc -w`
0 commit comments