Merge pull request #2216 from dagwieers/livestick-part-fix

Wrong partition name used for devices ending with numbers
This commit is contained in:
Stephan Raue 2013-04-21 14:19:04 -07:00
commit fd03e318e7

View File

@ -42,7 +42,12 @@ if [ -z "$1" ]; then
fi fi
DISK="$1" DISK="$1"
PART="${DISK}1"
### If DISK ends with a number, add "p1" instead of "1" for the first partition
case "${DISK: -1:1}" in
([0-9]) PART="${DISK}p1";;
(*) PART="${DISK}1";;
esac
clear clear
echo "#########################################################" echo "#########################################################"