mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-22 06:41:17 +00:00
6721c20629
4d4dcfb blockd: detect mountpoint of /dev/mapper/* 2f42515 block: resolve /dev/mapper/* name for /dev/dm-0 when hotplugging 39558a1 blockd: also send ubus notification on mount hotplug Signed-off-by: Daniel Golle <daniel@makrotopia.org>
23 lines
317 B
Bash
Executable File
23 lines
317 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=80
|
|
|
|
USE_PROCD=1
|
|
PROG=/sbin/blockd
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger "fstab"
|
|
}
|
|
|
|
reload_service() {
|
|
block autofs start
|
|
}
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command "$PROG"
|
|
procd_set_param watch block
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|