summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
beb9a29)
Changed files:
dhcp6.init -> 1.6
}
# wrapper for configtest
}
# wrapper for configtest
checkconfig() {
local details=${1:-0}
checkconfig() {
local details=${1:-0}
+ # run checkconfig only once
+ if [ "$checkconfig" != -1 ]; then
+ return $checkconfig
+ fi
+
if [ $details = 1 ]; then
# run config test and display report (status action)
show "Checking %s configuration" "DHCP IPv6 Server"; busy
local out
out=$(configtest 2>&1)
if [ $details = 1 ]; then
# run config test and display report (status action)
show "Checking %s configuration" "DHCP IPv6 Server"; busy
local out
out=$(configtest 2>&1)
- RETVAL=$?
- if [ $RETVAL = 0 ]; then
+ checkconfig=$?
+ if [ $checkconfig = 0 ]; then
# run config test and abort with nice message if failed
# (for actions checking status before action).
configtest >/dev/null 2>&1
# run config test and abort with nice message if failed
# (for actions checking status before action).
configtest >/dev/null 2>&1
- RETVAL=$?
- if [ $RETVAL != 0 ]; then
+ checkconfig=$?
+ if [ $checkconfig != 0 ]; then
show "Checking %s configuration" "DHCP IPv6 Server"; fail
nls 'Configuration test failed. See details with %s "checkconfig"' $0
show "Checking %s configuration" "DHCP IPv6 Server"; fail
nls 'Configuration test failed. See details with %s "checkconfig"' $0