Codebase list debian-goodies / 8fc0d56
Imported Debian version 0.38 Javier Fernandez-Sanguino 12 years ago
2 changed file(s) with 13 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 debian-goodies (0.38) unstable; urgency=low
1
2 * Fix bug in network-test which prevent it from working properly
3 when no verbose level was set.
4
5 -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org> Sun, 14 Oct 2007 23:19:07 +0200
6
07 debian-goodies (0.37) unstable; urgency=low
18
29 * checkrestart:
6868 # - Use arpping to detect another host with our same IP address
6969 # - Check other TODOs inline in the code
7070
71 # Defaults
72 VERB=3
73 LOG=0
7174 while getopts ":hsv:" Option
7275 do
7376 case $Option in
107110 # error reporting and logging functions
108111 info () {
109112 [ "$VERB" -gt 2 ] && echo "INFO: $1"
110 [ "$VERB" -gt 2 ] && [ "$LOG" ] && logger -p local3.info "$0 INFO: $1"
113 [ "$VERB" -gt 2 ] && [ "$LOG" -eq 1 ] && logger -p local3.info "$0 INFO: $1"
111114 }
112115
113116 warn () {
114117 [ "$VERB" -gt 1 ] && echo "WARN: $1"
115 [ "$VERB" -gt 1 ] && [ "$LOG" ] && logger -p local3.warn "$0 WARN: $1"
118 [ "$VERB" -gt 1 ] && [ "$LOG" -eq 1 ] && logger -p local3.warn "$0 WARN: $1"
116119 }
117120
118121 err () {
119122 [ "$VERB" -gt 0 ] && echo "ERR: $1" >&2
120 [ "$VERB" -gt 0 ] && [ "$LOG" ] && logger -p local3.err "$0 ERR: $1"
123 [ "$VERB" -gt 0 ] && [ "$LOG" -eq 1 ] && logger -p local3.err "$0 ERR: $1"
121124 }
122125
123126