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.
(resolved) Wifi Issues
(resolved) Wifi Issues
Last edited by ynowifi on Wed Jul 22, 2015 8:14 pm, edited 1 time in total.
Re: Wifi Issues -
Hi why no wifiynowifi wrote: I'm wondering, is it simply a case of inserting a number of escape characters, enclosing it in double quotes?

The code for this function uses double quotes to change the values, so you'll need to work around that:
Code: Select all
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
}
Code: Select all
nano /etc/network/interfaces
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: Wifi Issues -
Thanks Fourdee! I do apologise about my username
, it was fitting at the time.
I'll try that and get back to you with results!

I'll try that and get back to you with results!
Re: Wifi Issues -
Hi Fourdee! Issue resolved with copious amounts of escape characters! Thanks for your assistance. 

Re: Wifi Issues -
lolynowifi wrote:Hi Fourdee! Issue resolved with copious amounts of escape characters! Thanks for your assistance.


If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.