Skip to content

Commit

Permalink
configure_vold.sh: clean up identifying last partition on SD card
Browse files Browse the repository at this point in the history
  • Loading branch information
steven676 committed Apr 25, 2014
1 parent d68193e commit 9cecaa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fsfinder/configure_vold.sh
Expand Up @@ -14,8 +14,7 @@ bootdevice="`getprop ro.boot.bootdevice`"
case "$bootdevice" in
SD )
# Get last partition on SD card
last_partition="`(cd /dev/block; ls mmcblk1p*) | sort -rn | head -n 1`"
partnum="${last_partition##mmcblk1p}"
partnum="`for i in /dev/block/mmcblk1p*; do echo ${i##/dev/block/mmcblk1p}; done | sort -rn | head -n 1`"

# Update vold configuration for sdcard1
sed -e "s/voldmanaged=sdcard1:auto/voldmanaged=sdcard1:$partnum,nonremovable/" "$FSTAB" > "$FSTAB_NEW"
Expand Down

0 comments on commit 9cecaa1

Please sign in to comment.