mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
Workaround for issue 66 (https://github.com/Doodle3D/doodle3d-client/issues/66).
Remove ‘-s’ flag in wifibox init script to prevent duplicates log messages.
This commit is contained in:
parent
25c0c1a1fa
commit
ce043de28e
3
Makefile
3
Makefile
@ -100,7 +100,8 @@ define Package/wifibox/install
|
|||||||
|
|
||||||
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/d3d-updater.lua $(1)/$(TGT_LUA_DIR_SUFFIX)/script
|
$(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
|
$(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/d3dapi $(1)/$(TGT_LUA_DIR_SUFFIX)/script
|
||||||
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/signin.sh $(1)/$(TGT_LUA_DIR_SUFFIX)/script
|
$(INSTALL_BIN) $(WIFIBOX_BASE_DIR)/script/signin.sh $(1)/$(TGT_LUA_DIR_SUFFIX)/script
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ echo "/root/sketches" >> /etc/sysupgrade.conf
|
|||||||
|
|
||||||
$IPKG_INSTROOT/etc/init.d/wifibox enable
|
$IPKG_INSTROOT/etc/init.d/wifibox enable
|
||||||
$IPKG_INSTROOT/etc/init.d/wifibox start
|
$IPKG_INSTROOT/etc/init.d/wifibox start
|
||||||
|
$IPKG_INSTROOT/etc/init.d/dhcpcheck enable
|
||||||
|
|
||||||
if [ -z "$IPKG_INSTROOT" ]; then
|
if [ -z "$IPKG_INSTROOT" ]; then
|
||||||
echo "Enabling wifi device..."
|
echo "Enabling wifi device..."
|
||||||
|
16
src/script/dhcpcheck_init
Executable file
16
src/script/dhcpcheck_init
Executable 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
|
||||||
|
}
|
@ -3,7 +3,7 @@
|
|||||||
# start after networking
|
# start after networking
|
||||||
START=22
|
START=22
|
||||||
|
|
||||||
LOGGER="logger -s -t autowifi -p 6"
|
LOGGER="logger -t autowifi -p 6"
|
||||||
|
|
||||||
boot() {
|
boot() {
|
||||||
sleep 1
|
sleep 1
|
||||||
|
Loading…
Reference in New Issue
Block a user