diff --git a/Linux_reinstall/InstallNET.sh b/Linux_reinstall/InstallNET.sh index 23977d3..a3d9789 100644 --- a/Linux_reinstall/InstallNET.sh +++ b/Linux_reinstall/InstallNET.sh @@ -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=""