![Smile :-)](./images/smilies/icon_smile.gif)
I even found a "Puppy", that is not really a puppy, but still somewhat called that...
http://www.authpuppy.org/
I think the best choice is to offer the selection of only the profiles that have an available Access Point, provided the selection is dynamically updated with a scanning routine before the selection otherwise it is better to leave it as it is.stemsee wrote:@corvus
What do you think of the idea that wifiprofi only offers for selection profiles that have an Access Point available? Or leave it as it is to show all saved configs?
Code: Select all
rm -f /root/.wifivars
rm -f /root/.wifivars2
rm -f /root/.wifivarsdef
rm -f /root/Startup/defaultwifi
Doesn't work.stemsee wrote:So, run 'wifi-connect' and select AP, check 'default' box and 'save' box enter ok.
Deleting the files and run again wifi-connect has solved my issue now everything works as expected.stemsee wrote:Code: Select all
rm -f /root/.wifivars rm -f /root/.wifivars2 rm -f /root/.wifivarsdef rm -f /root/Startup/defaultwifi
Code: Select all
SIOCSIFHWADDR: Device or resource busy - you may need to down the interface
Code: Select all
mkfifo -m MODE $PIPE9
Code: Select all
MODE="0600"
mkfifo -m $MODE $PIPE9
Code: Select all
function selectfn () {
$choose
....
I echo that sentiment!!Scooby wrote: Also after running apllication a few times already annoyed with the
"can be empty" of User-id.
Code: Select all
buildnetworkselectorfn () {
cat /tmp/scansr2 | tr '\n' ' ' >> /tmp/scansr3
sed -i 's|^|choose=$(yad --window-icon=/usr/share/pixmaps/wifi.png --image "/usr/share/pixmaps/wifi.png" --columns=1 --title "$mytext16: $int" --item-separator="," --form --field="$mytext15":CBE "|' /tmp/scansr3
sed -i 's/$/" --field=$mytext20 --field=$mytext18:H --field=$mytext17:H --field=wlan0-default:CHK --field=wlan1:CHK --field="$mytext27":CHK --field="$mytext26":CHK --field="$mytext25" --field="$mytext24":CHK --button="gtk-ok:0" --button="gtk-close:1" --text "$mytext5" "$mytext21" "" "" "TRUE" "" "" "" "$mytext22" "TRUE")\n/' /tmp/scansr3
sed -i 's/, "/"/g' /tmp/scansr3
sed -i 's/, /,/g' /tmp/scansr3
sed -i 's/=""/=","/g' /tmp/scansr3
[[ /tmp/scansr ]] && . /tmp/scansr
[[ /tmp/scansr3 ]] && . /tmp/scansr3
}
selectfn () {
$choose
ret=$?
I don't get itstemsee wrote: $choose is defined in 'buildnetworkselectorfn', Then I have simply stated the variable and that is the entire gui, a bit like 'export gtkdialog'. Actually I was surprised when it worked!
Code: Select all
buildnetworkselectorfn () { cat /tmp/scansr2 | tr '\n' ' ' >> /tmp/scansr3 sed -i 's|^|choose=$(yad --window-icon=/usr/share/pixmaps/wifi.png --image "/usr/share/pixmaps/wifi.png" --columns=1 --title "$mytext16: $int" --item-separator="," --form --field="$mytext15":CBE "|' /tmp/scansr3 sed -i 's/$/" --field=$mytext20 --field=$mytext18:H --field=$mytext17:H --field=wlan0-default:CHK --field=wlan1:CHK --field="$mytext27":CHK --field="$mytext26":CHK --field="$mytext25" --field="$mytext24":CHK --button="gtk-ok:0" --button="gtk-close:1" --text "$mytext5" "$mytext21" "" "" "TRUE" "" "" "" "$mytext22" "TRUE")\n/' /tmp/scansr3 sed -i 's/, "/"/g' /tmp/scansr3 sed -i 's/, /,/g' /tmp/scansr3 sed -i 's/=""/=","/g' /tmp/scansr3 [[ /tmp/scansr ]] && . /tmp/scansr [[ /tmp/scansr3 ]] && . /tmp/scansr3 } selectfn () { $choose ret=$?
Code: Select all
choose=$(yad --window ...
Code: Select all
. scansr3
yad --versionstemsee wrote:Which version of yad do you have?
Yep that is a good way to learn coding.stemsee wrote: You are right, it isn't a command ... that is wy I was surprised that it worked!!
But it works for us on puppy linux!
I build the variables for the network AP names in /tmp/scansr/2/3
3 s the final version. First I split the results from iwlist wlan0 scan to scansr then insert net1= to each AP name > scansr2 then insert using sed the choose=$(yad and append the rest of the gui using sed to scansr3. Then I import that variable . /tmp/scansr3 then I state or call it in the next function and up pops the gui with all data as I had hoped! I can't explain it. I just follow my intuition.
Code: Select all
# $choose
ret=$?
[[ $ret -eq 1 ]] && exit 0
[[ $ret -eq 2 ]] && startinfn
Code: Select all
cd /tmp
. scansr3