modify hostname for address
This commit is contained in:
@@ -87,7 +87,7 @@ create_and_format_partitions() {
|
||||
change_overlay_usb() {
|
||||
install_depends_apps
|
||||
blueinfo "现在开始查找USB设备分区 请稍后......"
|
||||
local USB_PARTITION=$(lsblk -dn -o NAME,RM,TYPE | awk '$2=="1" && $3=="disk" {print "/dev/"$1; exit}')
|
||||
local USB_PARTITION=$(lsblk -dn -o NAME,TRAN | awk '$2=="usb" {print "/dev/"$1; exit}')
|
||||
if [ -z "$USB_PARTITION" ]; then
|
||||
red "未找到USB磁盘。"
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user