0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-07-03 06:21:21 +02:00
doodle3d-firmware/src/script/dhcpcheck_init
Wouter R ce043de28e Workaround for issue 66 (https://github.com/Doodle3D/doodle3d-client/issues/66).
Remove ‘-s’ flag in wifibox init script to prevent duplicates log messages.
2013-11-29 21:14:59 +01:00

17 lines
403 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# start after all other scripts
START=99
LOGGER="logger -t dhcpcheck -p 6"
boot() {
logread | grep "192.168.10.249, lease time 12h"
if [ $? -ne 0 ]; then
$LOGGER "Applying workaround for dhcp/dnsmasq issue. See: https://github.com/Doodle3D/doodle3d-client/issues/66"
/etc/init.d/dnsmasq reload
else
$LOGGER "DHCP configuration is in order, not doing anything"
fi
}