diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-04-11 02:07:20 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-04-11 11:40:18 +0200 |
commit | 7fab9eaf848004fd742e0513d620ced9ee7667a2 (patch) | |
tree | 2470a3a6643e5ae2cf3d89c50998b92cfffc86db /src/hooks/arch | |
parent | fda34d4a6c03e919786b26876d6a9c051119db1d (diff) | |
download | netctl-7fab9eaf848004fd742e0513d620ced9ee7667a2.tar.gz netctl-7fab9eaf848004fd742e0513d620ced9ee7667a2.tar.xz |
Rewrite output hook to not depend on initscripts
/etc/rc.d/functions is owned by initscripts on which netcfg does not explicitly depend.
The revised layout is inspired by systemd.
Diffstat (limited to 'src/hooks/arch')
-rw-r--r-- | src/hooks/arch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/hooks/arch b/src/hooks/arch deleted file mode 100644 index c5d0587..0000000 --- a/src/hooks/arch +++ /dev/null @@ -1,42 +0,0 @@ -. /etc/rc.conf -. /etc/rc.d/functions - -### Logging/Error reporting for Arch Linux - -function report_err { - printhl "$*" -} - -function report_warn { - printhl "$*" -} - -function report_try { - stat_busy "$*" - REPORT_TRYING=1 -} - -function report_fail { - if [[ -n "$*" ]]; then - if [[ -n "$REPORT_TRYING" ]]; then - stat_append "- $*" - REPORT_TRYING= - stat_fail - else - printhl "$*" - fi - elif [[ -n "$REPORT_TRYING" ]]; then - REPORT_TRYING= - stat_fail - fi -} - -function report_success { - if [[ -n "$*" ]]; then - stat_append "- $*" - REPORT_TRYING= - fi - stat_done -} - -# vim: ft=sh ts=4 et sw=4: |