Skip to content

Commit

Permalink
Corrected access to imagefolder
Browse files Browse the repository at this point in the history
  • Loading branch information
procount committed May 1, 2014
1 parent 2f1e45b commit 241da8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified Examples/Raspbian/nc-helpers/nc-helpers.tar
Binary file not shown.
2 changes: 2 additions & 0 deletions Helpers/nc-get-label
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ imagefolder=`sed -n "s/.*\"imagefolder\".*:.*\"\(.*\)\".*/\1/p" </boot/os_config
flavour=`sed -n "s/.*\"flavour\".*:.*\"\(.*\)\".*/\1/p" </boot/os_config.json |sed "s/ \+/_/g"`

#Get the list of partition names used
sudo mount -o ro /dev/mmcblk0p1 /mnt
partLabels=`sed -n "s/.*\"label\".*:.*\"\(.*\)\".*/\1/p" <$imagefolder/partitions.json`
sudo umount /mnt

#Get the number of partitions used.
numparts=`echo $partLabels |wc -w`
Expand Down

0 comments on commit 241da8c

Please sign in to comment.