Update InstallNET.sh

This commit is contained in:
Molly Lau 2022-12-08 00:00:46 +09:00 committed by GitHub
parent d16e01b4b8
commit 9ef249b7b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -391,6 +391,10 @@ function getDisk(){
[ $? -eq 0 ] && echo "$disks" || echo "/dev/$disks"
}
function diskType(){
echo `udevadm info --query all "$1" 2>/dev/null |grep 'ID_PART_TABLE_TYPE' |cut -d'=' -f2`
}
# $1 is timezone checkfile direction, $2 $3 $4 are api keys.
function getUserTimezone(){
if [[ "$TimeZone" == "" ]]; then
@ -409,10 +413,6 @@ function getUserTimezone(){
fi
}
function diskType(){
echo `udevadm info --query all "$1" 2>/dev/null |grep 'ID_PART_TABLE_TYPE' |cut -d'=' -f2`
}
function checkEfi(){
EfiStatus=`efibootmgr l | head -n 1`
EfiVars=""