iup: do not check for file nor reboot if the section is not enabled

This commit is contained in:
Alex Oprea 2017-04-11 16:39:35 +02:00
parent 4f428b93c5
commit 999dd67304

View file

@ -229,7 +229,7 @@ handle_provisioning() {
fi
done
fi
if [ ! -s "$IUPCONFFILES" ]; then
if [ ! -s "$IUPCONFFILES" ] && [ "$enabled" -eq 1 ]; then
echo "File not Found"
reboot="off"
CONF=0