mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
22 lines
288 B
Plaintext
22 lines
288 B
Plaintext
|
#!/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 respawn
|
||
|
procd_close_instance
|
||
|
}
|