mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-11-10 01:10:30 +08:00
Update InstallNET.sh
This commit is contained in:
parent
d16e01b4b8
commit
9ef249b7b3
1 changed files with 4 additions and 4 deletions
|
|
@ -391,6 +391,10 @@ function getDisk(){
|
||||||
[ $? -eq 0 ] && echo "$disks" || echo "/dev/$disks"
|
[ $? -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.
|
# $1 is timezone checkfile direction, $2 $3 $4 are api keys.
|
||||||
function getUserTimezone(){
|
function getUserTimezone(){
|
||||||
if [[ "$TimeZone" == "" ]]; then
|
if [[ "$TimeZone" == "" ]]; then
|
||||||
|
|
@ -409,10 +413,6 @@ function getUserTimezone(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function diskType(){
|
|
||||||
echo `udevadm info --query all "$1" 2>/dev/null |grep 'ID_PART_TABLE_TYPE' |cut -d'=' -f2`
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkEfi(){
|
function checkEfi(){
|
||||||
EfiStatus=`efibootmgr l | head -n 1`
|
EfiStatus=`efibootmgr l | head -n 1`
|
||||||
EfiVars=""
|
EfiVars=""
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue