06-13-2020, 04:36 PM
(06-13-2020, 03:36 PM)TheOldPresbyope Wrote: In bash, the single quote mark (') and the double quote mark (") are treated differently. Special characters such as dollar sign ($) and reverse solidus (\) are interpreted in strings contained within double quotes; they aren't in strings contained within single quotes.
Examples:
Code:pi@moodelr:~ $ wpa_passphrase "$MyFavoriteFootie$" "the $illy name of the captain"
network={
ssid="$"
#psk="the name of the captain"
psk=a298bf7833845d0fe2eb1bacc9b8c71b2666c803f427a1c22c28fe57613227df
}
pi@moodelr:~ $ wpa_passphrase '$MyFavoriteFootie$' 'the $illy name of the captain'
network={
ssid="$MyFavoriteFootie$"
#psk="the $illy name of the captain"
psk=678bdc6bb2e32a5842c5539da7eebae1732ad8bcde202d3040dab4b65e77b7f4
Note that the reverse solidus can be used to prevent the interpretation of the following character when contained within double quotes:
Code:pi@moodelr:~ $ wpa_passphrase "\$MyFavoriteFootie\$" "the \$illy name of the captain"
network={
ssid="$MyFavoriteFootie$"
#psk="the $illy name of the captain"
psk=678bdc6bb2e32a5842c5539da7eebae1732ad8bcde202d3040dab4b65e77b7f4
Regards,
Kent
Thanks, I did and it works and accepts the new SSID and password and generates the auto codes but the configuration set from the Network Settings overwrite it during boot.
Any suggestions.