Imported Debian version 0.38
Javier Fernandez-Sanguino
12 years ago
|
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 |
|
0 | 7 |
debian-goodies (0.37) unstable; urgency=low
|
1 | 8 |
|
2 | 9 |
* checkrestart:
|
68 | 68 |
# - Use arpping to detect another host with our same IP address
|
69 | 69 |
# - Check other TODOs inline in the code
|
70 | 70 |
|
|
71 |
# Defaults
|
|
72 |
VERB=3
|
|
73 |
LOG=0
|
71 | 74 |
while getopts ":hsv:" Option
|
72 | 75 |
do
|
73 | 76 |
case $Option in
|
|
107 | 110 |
# error reporting and logging functions
|
108 | 111 |
info () {
|
109 | 112 |
[ "$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"
|
111 | 114 |
}
|
112 | 115 |
|
113 | 116 |
warn () {
|
114 | 117 |
[ "$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"
|
116 | 119 |
}
|
117 | 120 |
|
118 | 121 |
err () {
|
119 | 122 |
[ "$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"
|
121 | 124 |
}
|
122 | 125 |
|
123 | 126 |
|