summaryrefslogtreecommitdiffstats
path: root/src/hooks/arch
diff options
context:
space:
mode:
authorJim Pryor <profjim@jimpryor.net>2009-08-11 14:04:50 +0200
committerJames Rayner <james@archlinux.org>2009-08-15 04:28:25 +0200
commit4ede76fb6a5ba81b92b0e3452e954d9eea431a74 (patch)
tree35a778707c544d6604a01aca3027df4924408f8a /src/hooks/arch
parent4ebad5f88abda1b0788ef7ad3cd46d8cd8cfa6d7 (diff)
downloadnetctl-4ede76fb6a5ba81b92b0e3452e954d9eea431a74.tar.gz
netctl-4ede76fb6a5ba81b92b0e3452e954d9eea431a74.tar.xz
Add contrib dir and logging hooks
* Add contrib/logging.hook * Update Makefile and manpage * Propose that hooks go into /etc, not /usr---latter should be shareable and possibly read-only, not good spot for user-configurable files like these. * Since we have hooks/arch as part of the package, this commit attempts to load hooks from both /usr/lib/network/hooks and /etc/network.d/hooks. (Executable hooks in /etc take precedence over hooks with same name from /usr.) * Need to load /etc/rc.conf before /etc/rc.d/functions (e.g. for USECOLORS) Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Diffstat (limited to 'src/hooks/arch')
-rw-r--r--src/hooks/arch1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hooks/arch b/src/hooks/arch
index e8f20f1..6bf6a41 100644
--- a/src/hooks/arch
+++ b/src/hooks/arch
@@ -1,3 +1,4 @@
+. /etc/rc.conf
. /etc/rc.d/functions
### Logging/Error reporting for Arch Linux