mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
doc/plugins.md: fix script hook path
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
5db2fb2c32
commit
0c9b7a67e0
1 file changed
+2
-2
+2
-2
@@ -136,7 +136,7 @@ hook points:
|
|||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
$ mkdir -p /libexec/finit/hook/sys/down
|
$ mkdir -p /libexec/finit/hook/sys/down
|
||||||
$ cat <<EOF >/libexec/finit/hook/sys/foo.sh
|
$ cat <<EOF >/libexec/finit/hook/sys/down/foo.sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo 'I run just before the reboot() syscall at shutdown/reboot'
|
echo 'I run just before the reboot() syscall at shutdown/reboot'
|
||||||
echo 'I have access to /dev since devtmpfs is exempt from umount'
|
echo 'I have access to /dev since devtmpfs is exempt from umount'
|
||||||
@@ -146,7 +146,7 @@ hook points:
|
|||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
EOF
|
EOF
|
||||||
$ chmod +x /libexec/finit/hook/sys/foo.sh
|
$ chmod +x /libexec/finit/hook/sys/down/foo.sh
|
||||||
|
|
||||||
> **Note:** to use hook scripts, even for pre-bootstrap and pre-shutdown
|
> **Note:** to use hook scripts, even for pre-bootstrap and pre-shutdown
|
||||||
> tasks, you must build with `configure --enable-hook-scripts-plugin`.
|
> tasks, you must build with `configure --enable-hook-scripts-plugin`.
|
||||||
|
|||||||
Reference in new issue
Block a user