iup: do not use the verbose function before parsing the args

This commit is contained in:
Alex Oprea 2017-01-30 15:40:51 +01:00
parent ca38833cf2
commit f58fa5af0a

View file

@ -30,13 +30,6 @@ v() {
[ "$VERBOSE" -ge 1 ] && logger -s -t $0[$$] "$@" 2>&1 | tee /dev/console
}
if [ -f $IUPMD5 ]; then
v "File $IUPMD5 exists"
else
v "File $IUPMD5 did not exists"
touch $IUPMD5
fi
handle_ucitrack()
{
local config="$1"
@ -379,6 +372,13 @@ while [ -n "$1" ]; do
shift;
done
if [ -f $IUPMD5 ]; then
v "File $IUPMD5 exists"
else
v "File $IUPMD5 did not exists"
touch $IUPMD5
fi
# Process IUP related DHCP options #
if [ -n "$1" ]; then
local privopt224 privopt225 privopt226 vendorspecinf httpurl128