aboutsummaryrefslogtreecommitdiff
path: root/rc.multi
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-08-26 23:26:54 +0200
committerThomas Bächler <thomas@archlinux.org>2009-08-26 23:26:54 +0200
commit58fc27aaeb6d7d67cdf93997a33e0cbe4b5d7ada (patch)
tree05e9c2df6176d3f679739b7a25d047478ee6de32 /rc.multi
parentcfabb85924f35c636550609b332d088aaae9941f (diff)
downloadinitscripts-58fc27aaeb6d7d67cdf93997a33e0cbe4b5d7ada.tar.xz
Make the hook-system a bit more usable
This patch makes the hook names unique, prefixing them all with the script name (without the 'rc.') It also removes the explicit declarations of all elements of the array, bash assumes "" if they are uninitialized
Diffstat (limited to 'rc.multi')
-rwxr-xr-xrc.multi4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.multi b/rc.multi
index 0cddd1d..a7ea703 100755
--- a/rc.multi
+++ b/rc.multi
@@ -6,7 +6,7 @@
. /etc/rc.conf
. /etc/rc.d/functions
-run_hook start rc.multi
+run_hook multi_start
# Load sysctl variables if sysctl.conf is present
[ -r /etc/sysctl.conf ] && /sbin/sysctl -q -p &>/dev/null
@@ -26,6 +26,6 @@ if [ -x /etc/rc.local ]; then
/etc/rc.local
fi
-run_hook end rc.multi
+run_hook multi_end
# vim: set ts=2 noet: