mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-04 19:53:56 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,9 @@
|
||||
[ "$ACTION" = "add" ] && {
|
||||
[ "$(uci -q get partexp.global.target_disk)" ] || {
|
||||
target_disk="$(lsblk -o NAME | grep sd | grep -v "[0-9]" | tail -n 1)"
|
||||
[ "$(block info | grep "$target_disk" | grep "kernel")" ] || {
|
||||
uci -q set partexp.global.target_disk="$target_disk"
|
||||
uci commit partexp
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user