Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-10-09 11:14:29 +09:00 committed by GitHub
parent cd8a2924ea
commit d6f989c7f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4458,7 +4458,7 @@ elif [[ ! -z "$GRUBTYPE" && "$GRUBTYPE" == "isGrub2" ]]; then
[[ "$grub2Order" != "0" ]] || grub2Order="saved" [[ "$grub2Order" != "0" ]] || grub2Order="saved"
# Make grub2 to prefer installation item to boot first. # Make grub2 to prefer installation item to boot first.
sed -ri 's/GRUB_DEFAULT=.*/GRUB_DEFAULT='$grub2Order'/g' /etc/default/grub sed -ri 's/GRUB_DEFAULT=.*/GRUB_DEFAULT='$grub2Order'/g' /etc/default/grub
if [[ "$linux_relese" == 'ubuntu' || "$linux_relese" == 'debian' || "$linux_relese" == 'kali' ]]; then if [[ "$linux_relese" == 'ubuntu' || "$linux_relese" == 'debian' || "$linux_relese" == 'kali' ]]; then
BOOT_OPTION="auto=true $Add_OPTION hostname=$HostName domain=$linux_relese quiet" BOOT_OPTION="auto=true $Add_OPTION hostname=$HostName domain=$linux_relese quiet"
elif [[ "$linux_relese" == 'alpinelinux' ]]; then elif [[ "$linux_relese" == 'alpinelinux' ]]; then
if [[ "$IPStackType" == "BiStack" || "$IPStackType" == "IPv4Stack" ]]; then if [[ "$IPStackType" == "BiStack" || "$IPStackType" == "IPv4Stack" ]]; then