arpitjindal97 / raspbian-recipes

Raspberry networking made easy - Need Contributors
GNU General Public License v3.0
410 stars 164 forks source link

Adding -e fixed issue with wifi-to-eth-route.sh #63

Closed mickeypash closed 2 years ago

mickeypash commented 2 years ago

Thank you for the extremely helpful blog post

I don't know if this is just an issue with me but I was having issues with connectivity after using the script. It took me quite some time to find it 🦭 but I think it was the fact that without the -e flag on the echo command the \n were not being rendered correctly and thus the dnsmasq.conf was not being applied?

echo -e "interface=$eth
bind-interfaces
server=$dns_server
domain-needed
bogus-priv
dhcp-range=$dhcp_range_start,$dhcp_range_end,$dhcp_time" > /tmp/custom-dnsmasq.conf
arpitjindal97 commented 2 years ago

Can you create a PR for the fix ? Make sure to test if the conf file is generated properly with correct values