mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 18:49:41 +00:00
Update chr.sh
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
73559ce979
commit
d5eea3df4b
2
chr.sh
2
chr.sh
@ -139,7 +139,7 @@ show_system_info() {
|
||||
}
|
||||
|
||||
confirm_storge() {
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
if command -v lsblk >/dev/null 2>&1; then
|
||||
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/##')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user