(resolved) Wifi Issues


My wifi password which is a 63 character randomly generated ASCII string does not seem to work with the DietPi config. An example of the wifi passwords that I use are:


And can be obtained from https://www.grc.com/passwords.htm.

I’m wondering, is it simply a case of inserting a number of escape characters, enclosing it in double quotes?

Thanks in advance.

Hi why no wifi :stuck_out_tongue:,

The code for this function uses double quotes to change the values, so you’ll need to work around that:

		OPTION=$(whiptail --inputbox "Enter the Access Key (WPA/WEP)." 8 60 "$WIFI_KEY" --title "Set Your Acccess Key" 3>&1 1>&2 2>&3)
		if (( $CHOICE == 0 )); then
			sed -i "/wireless-key/c\wireless-key $OPTION" /etc/network/interfaces
			sed -i "/wpa-psk/c\wpa-psk $OPTION" /etc/network/interfaces

Your best bet would be to manually add the details to /etc/network/interfaces directly.

nano /etc/network/interfaces

Thanks Fourdee! I do apologise about my username :rofl:, it was fitting at the time.

I’ll try that and get back to you with results!

Hi Fourdee! Issue resolved with copious amounts of escape characters! Thanks for your assistance. :smiley:

lol :open_mouth: , good to hear you got it working :slight_smile: