IUP is now logging to syslog, ref #8665

This commit is contained in:
Vlatko Dimic 2016-03-08 11:34:28 +01:00
parent 8cd62ff81f
commit 24b6106ddd
2 changed files with 4 additions and 4 deletions

View file

@ -76,7 +76,7 @@ init_iup() {
if grep -q "iup" "$CRONPATH" ; then
sed -i "/iup/d" $CRONPATH
fi
echo "$number $starttime * * $interval /sbin/iup > /dev/null 2>&1" >> $CRONPATH
echo "$number $starttime * * $interval /sbin/iup -v > /dev/null 2>&1" >> $CRONPATH
fsync $CRONPATH
/etc/init.d/cron restart
fi
@ -91,7 +91,7 @@ start_service() {
test_default_route
if [ "$?" -eq 0 ]; then
/sbin/iup &
/sbin/iup -v &
fi
}

View file

@ -24,7 +24,7 @@ MAC=${MAC// /}
MAC=$(echo $MAC | tr '[a-z]' '[A-Z]')
v() {
[ "$VERBOSE" -ge 1 ] && echo "$@"
[ "$VERBOSE" -ge 1 ] && logger -t iup "$@"
}
if [ -f $IUPMD5 ]; then
@ -259,7 +259,7 @@ if [ $configurl ]; then
elif [ $iupurl ]; then
handle_provisioning iup
else
echo "No Provisioning Server Found"
v "No Provisioning Server Found"
exit
fi
config_load provisioning