Quotes in updater script, Readme updates, remount script.

This commit is contained in:
Richard Goodwin
2018-10-18 07:32:08 -05:00
parent 9aa5d0114d
commit e917829a9f
7 changed files with 31 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
#|| | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#|| #
# Script repurposed fromhttps://github.com/BigNate1234/rpi-USBSSH
# Script repurposed from https://github.com/BigNate1234/rpi-USBSSH
#
# This script will modify the cmdline.txt file on a freshly flashed Raspbian Stretch/Lite
# It readies it for SSH, USB OTG, USB networking, and Wifi
@@ -79,18 +79,23 @@ fi
# Sets up wifi credentials so wifi will be
# auto configured on first boot
if [ -r "wpa_supplicant.conf" ]
then
rm wpa_supplicant.conf
fi
cat << EOF >> wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=$SSID
psk=$WIFIPASS
ssid="$SSID"
psk="$WIFIPASS"
key_mgmt=WPA-PSK
}
EOF
cd
echo ""
echo '-- Files updated and ready for Wifi and SSH over USB --'