From 3ffd90319aaa93b4253c10b2a656b080b8b8efb8 Mon Sep 17 00:00:00 2001 From: KM4ACK <42844783+km4ack@users.noreply.github.com> Date: Tue, 9 Apr 2019 16:47:15 -0500 Subject: [PATCH] fix sed command and +x autohotspotN --- autohotspot-setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autohotspot-setup b/autohotspot-setup index 2ed4381..4393d11 100644 --- a/autohotspot-setup +++ b/autohotspot-setup @@ -45,7 +45,7 @@ sed -i 's/country_code=GB/country_code=US/' $HOME/temp/hostapd.txt #move hostapd to correct location mv $HOME/temp/hostapd.txt /etc/hostapd/hostapd.conf -sed -i s'/#DAEMON_CONF=""/DAEMON_CONF="/etc/hostapd/hostapd.conf"/' /etc/default/hostapd +sed -i s'/#DAEMON_CONF=""/DAEMON_CONF="\/etc\/hostapd\/hostapd.conf"/' /etc/default/hostapd sed -i s'/DAEMON_OPTS=""/#DAEMON_OPTS=""/' /etc/default/hostapd #add needed info to dnsmasq.conf @@ -88,6 +88,7 @@ fi cd $HOME/temp wget http://www.raspberryconnect.com/images/autohotspotN/autohotspotn-95-4/autohotspotN.txt mv autohotspotN.txt /usr/bin/autohotspotN +chmod +x /usr/bin/autohotspotN #get ham's wifi credentials echo "What wifi SSID would you like to connect to?"