summaryrefslogtreecommitdiff
path: root/package/system/fstools/files
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-02-23 05:18:11 +0100
committerJohn Crispin <john@phrozen.org>2017-03-06 07:16:50 +0100
commit7e4b869c451383f7fca654abd1cd726c862d6dd7 (patch)
tree6007e032935a81d8e30e638ea271513191cc06b5 /package/system/fstools/files
parent6a772cb953c4c36dfdf49365937b71017652562a (diff)
downloadmtk-20170518-7e4b869c451383f7fca654abd1cd726c862d6dd7.zip
mtk-20170518-7e4b869c451383f7fca654abd1cd726c862d6dd7.tar.gz
mtk-20170518-7e4b869c451383f7fca654abd1cd726c862d6dd7.tar.bz2
fstools: add blockd
this daemon replaces mountd. Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/system/fstools/files')
-rwxr-xr-xpackage/system/fstools/files/blockd.init21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/system/fstools/files/blockd.init b/package/system/fstools/files/blockd.init
new file mode 100755
index 0000000..a4ce57d
--- /dev/null
+++ b/package/system/fstools/files/blockd.init
@@ -0,0 +1,21 @@
+#!/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
+}