mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #2216 from dagwieers/livestick-part-fix
Wrong partition name used for devices ending with numbers
This commit is contained in:
commit
fd03e318e7
@ -42,7 +42,12 @@ if [ -z "$1" ]; then
|
||||
fi
|
||||
|
||||
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
|
||||
echo "#########################################################"
|
||||
|
Loading…
x
Reference in New Issue
Block a user