Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sometimes after boot the WiFiBox dhcp gives no ip-address in AP mode #66

Closed
companje opened this issue Nov 21, 2013 · 2 comments
Closed

Comments

@companje
Copy link
Member

logread says:
Thu Jan 1 00:07:37 1970 daemon.warn dnsmasq-dhcp[1013]: no address range available for DHCP request via wlan0

this solves the problem:
/etc/init.d/dnsmasq reload

can we autodetect the failure and use this as a workaround?

@companje
Copy link
Member Author

This seems to be a good workaround for now. Place the code below in /etc/init.d/dhcpcheck. And enable it with /etc/init.d/dhcpcheck enable

#!/bin/sh /etc/rc.common                                                                                              

# start after networking                                                                                              
START=99                                                                                                              

LOGGER="logger -s -t dhcpcheck -p 6"                                                                                  

boot() {                                                                                                              
        logread | grep "192.168.10.249, lease time 12h"                                                               
        if [ $? -ne 0 ]; then                                                                                         
                $LOGGER "Applying workaround for dhcp/dnsmasq problem https://github.com/Doodle3D/doodle3d-client/issues/66"
                /etc/init.d/dnsmasq reload                                                                            
        else                                                                                                          
                $LOGGER "dhcpcheck completed successfully"                                                            
        fi                                                                                                                                                            
}  

woutgg added a commit to Doodle3D/doodle3d-firmware that referenced this issue Nov 29, 2013
Remove ‘-s’ flag in wifibox init script to prevent duplicates log messages.
@woutgg
Copy link
Contributor

woutgg commented Nov 29, 2013

Closing, the workaround should be sufficient for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants