From 9ef249b7b3bc60c314de747eb7e8cc0c7b1a93cc Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Thu, 8 Dec 2022 00:00:46 +0900 Subject: [PATCH] Update InstallNET.sh --- Linux_reinstall/InstallNET.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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=""