summaryrefslogtreecommitdiffstats
path: root/src/hooks/initscripts
blob: 06d467cb6a3e7655bfffbd980c55965761200dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Use initscripts output formatting.
# This hook must be loaded after 'fancy'.

# At some point, this can be removed. Configuration through rc.conf is
# than still possible for initscripts users as a side effect.
if [[ -f /etc/rc.conf ]]; then
    . /etc/rc.conf
    if ! checkyesno $WARNED &&
       [[ ${NETWORKS+x} = x || ${WIRED_INTERFACE+x} = x ||
          ${WIRELESS_INTERFACE+x} = x || ${AUTO_PROFILES+x} = x ]]; then
        report_err "Using /etc/rc.conf for netcfg settings is deprecated.
   Use /etc/conf.d/netcfg instead."
        export WARNED=yes
    fi
fi

[[ ${FANCY_NORMAL+x} = x && -f /etc/rc.d/functions ]] || return
#. /etc/rc.conf
. /etc/rc.d/functions


function report_try {
    stat_busy "$*"
    REPORT_TRYING=1
}

function report_append {
    stat_append "- $*"
}

function report_failed {
    stat_fail
}

function report_done {
    stat_done
}


FANCY_NORMAL=$C_CLEAR
FANCY_HIGHLIGHT=$C_H1
FANCY_FAILED=$C_FAIL
FANCY_DONE=$C_DONE
FANCY_OTHER=$C_OTHER

PREFIX_ATTENTION=$PREFIX_HL

# vim: ft=sh ts=4 et sw=4: