(resolved) Wifi Issues

Hi,

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:

v7*9h4-Vd">/d!3|_}`|~@%8jbtPROjE"y5?<NV,1&\Eh+/,g}d!A,u>((~$hs,

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:

	Change_WifiKey(){
		OPTION=$(whiptail --inputbox "Enter the Access Key (WPA/WEP)." 8 60 "$WIFI_KEY" --title "Set Your Acccess Key" 3>&1 1>&2 2>&3)
		CHOICE=$?
		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
		fi
	}

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: