Report comment

Hi, Love your script, exactly what I was looking for.


there is one small part I cannot get to work, retrieving the list of known ssids from wpa_supplicant.conf.

I found the workarround by manually declaring my networks, but i would like the program to work as written :)

I tried to find out why by dissecting this command

wpassid=$(awk '/ssid="/{ print $0 }' /etc/wpa_supplicant/wpa_supplicant.conf | awk -F'ssid=' '{ print $2 }' ORS=',' | sed 's/\"/''/g' | sed 's/,$//')

on the command line all this returns is a comma followed by the prompt. I think this is because of the ORS statement in the second awk command. Leaving that statement out does return a list of the ssids. However, this list cannot be processed in the rest of the script because I think it expects a single line.

could you help me out?

cheers,

Marc