mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Update install.sh
This commit is contained in:
parent
3652e3663b
commit
b8fefcdfb8
1 changed files with 12 additions and 12 deletions
24
install.sh
24
install.sh
|
@ -37,30 +37,30 @@ echo w # write changes.
|
|||
|
||||
if [ $driveName == /dev/nvme* ]; then
|
||||
# Set variables
|
||||
efiName="${driveName}p1"
|
||||
rootName="${driveName}p2"
|
||||
swapName="${driveName}p3"
|
||||
efiName=${driveName}p1
|
||||
rootName=${driveName}p2
|
||||
swapName=${driveName}p3
|
||||
|
||||
# Check if the device is a SATA drive
|
||||
elif [ $driveName == /dev/sd* ]; then
|
||||
# Set variables
|
||||
efiName="${driveName}1"
|
||||
rootName="${driveName}2"
|
||||
swapName="${driveName}3"
|
||||
efiName=${driveName}1
|
||||
rootName=${driveName}2
|
||||
swapName=${driveName}3
|
||||
|
||||
# Check if the device is a Virtual drive
|
||||
elif [ $driveName == /dev/vd* ]; then
|
||||
# Set variables
|
||||
efiName="${driveName}1"
|
||||
rootName="${driveName}2"
|
||||
swapName="${driveName}3"
|
||||
efiName=${driveName}1
|
||||
rootName=${driveName}2
|
||||
swapName=${driveName}3
|
||||
|
||||
# Check if the device is an eMMC drive
|
||||
elif [ $driveName == /dev/mmcblk* ]; then
|
||||
# Set variables
|
||||
efiName="${driveName}1"
|
||||
rootName="${driveName}2"
|
||||
swapName="${driveName}3"
|
||||
efiName=${driveName}1
|
||||
rootName=${driveName}2
|
||||
swapName=${driveName}3
|
||||
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue