0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 11:03:48 +01:00
Remove ‘-s’ flag in wifibox init script to prevent duplicates log messages.
This commit is contained in:
Wouter R 2013-11-29 21:14:59 +01:00
parent 25c0c1a1fa
commit ce043de28e
4 changed files with 20 additions and 2 deletions

View File

@ -100,7 +100,8 @@ define Package/wifibox/install
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/d3d-updater.lua $(1)/$(TGT_LUA_DIR_SUFFIX)/script
$(LN) -s /$(TGT_LUA_DIR_SUFFIX)/script/d3d-updater.lua $(1)/bin/d3d-updater
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/wifibox_init $(1)/etc/init.d/wifibox # copy directly to init dir (required for post-inst enabling)
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/wifibox_init $(1)/etc/init.d/wifibox
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/dhcpcheck_init $(1)/etc/init.d/dhcpcheck
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/d3dapi $(1)/$(TGT_LUA_DIR_SUFFIX)/script
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/signin.sh $(1)/$(TGT_LUA_DIR_SUFFIX)/script

View File

@ -74,6 +74,7 @@ echo "/root/sketches" >> /etc/sysupgrade.conf
$IPKG_INSTROOT/etc/init.d/wifibox enable
$IPKG_INSTROOT/etc/init.d/wifibox start
$IPKG_INSTROOT/etc/init.d/dhcpcheck enable
if [ -z "$IPKG_INSTROOT" ]; then
echo "Enabling wifi device..."

16
src/script/dhcpcheck_init Executable file
View File

@ -0,0 +1,16 @@
#!/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
}

View File

@ -3,7 +3,7 @@
# start after networking
START=22
LOGGER="logger -s -t autowifi -p 6"
LOGGER="logger -t autowifi -p 6"
boot() {
sleep 1