updated drivesdd
This commit is contained in:
parent
f23c4acc49
commit
81d413ac70
19
startup.sh
19
startup.sh
|
|
@ -163,18 +163,19 @@ keymap () {
|
||||||
}
|
}
|
||||||
|
|
||||||
drivessd () {
|
drivessd () {
|
||||||
echo -ne "
|
# confirm if ssd is present
|
||||||
Is this an ssd? yes/no:
|
read -pr "Is this system using an SSD? yes/no: " _SSD
|
||||||
"
|
case "$_SSD" in
|
||||||
read -r ssd_drive
|
|
||||||
|
|
||||||
case $ssd_drive in
|
|
||||||
y|Y|yes|Yes|YES)
|
y|Y|yes|Yes|YES)
|
||||||
echo "mountoptions=noatime,compress=zstd,ssd,commit=120" >> setup.conf;;
|
set_option "SSD" 1
|
||||||
|
set_option "MOUNTOPTION" "noatime,compress=zstd,ssd,commit=120"
|
||||||
|
;;
|
||||||
n|N|no|NO|No)
|
n|N|no|NO|No)
|
||||||
echo "mountoptions=noatime,compress=zstd,commit=120" >> setup.conf;;
|
set_option "SSD" 0
|
||||||
|
set_option "MOUNTOPTION" "noatime,compress=zstd,commit=120"
|
||||||
|
;;
|
||||||
*) echo "Wrong option. Try again";drivessd;;
|
*) echo "Wrong option. Try again";drivessd;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# selection for disk type
|
# selection for disk type
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue