From 58fc27aaeb6d7d67cdf93997a33e0cbe4b5d7ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Wed, 26 Aug 2009 23:26:54 +0200 Subject: 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 --- rc.multi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.multi') 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: -- cgit v1.2.3