mirror of
https://github.com/openwrt/packages.git
synced 2025-02-12 03:28:07 +00:00
f32236e542
Automatically scan and activate physical volumes when added at runtime. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 lines
180 B
Plaintext
7 lines
180 B
Plaintext
|
|
[ "$ACTION" = "add" ] || return 0
|
|
[ -e "/dev/$DEVNAME" ] || return 0
|
|
|
|
/sbin/lvm vgscan --mknodes --devices /dev/$DEVNAME || :
|
|
/sbin/lvm vgchange -aly --devices /dev/$DEVNAME || :
|