mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 18:49:41 +00:00
modified: chr.sh
This commit is contained in:
parent
447f7990ae
commit
dc20f46a94
6
chr.sh
6
chr.sh
@ -139,11 +139,7 @@ show_system_info() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
confirm_storge() {
|
confirm_storge() {
|
||||||
if command -v lsblk >/dev/null 2>&1; then
|
STORAGE=$(lsblk | grep disk | head -1 | awk '{print $1}')
|
||||||
STORAGE=$(lsblk -d -n -o NAME,TYPE | awk '$2=="disk"{print $1; exit}')
|
|
||||||
else
|
|
||||||
STORAGE=$(fdisk -l | awk '/^Disk \/dev/ {print $2; exit}' | sed 's#:##' | sed 's#/dev/##')
|
|
||||||
fi
|
|
||||||
ask_until "$MSG_STORAGE_DEVICE" "$STORAGE"
|
ask_until "$MSG_STORAGE_DEVICE" "$STORAGE"
|
||||||
STORAGE=$resp
|
STORAGE=$resp
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user