WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: wifi.tcz  (Read 41358 times)

Offline nick65go

  • Hero Member
  • *****
  • Posts: 805
Re: wifi.tcz
« Reply #15 on: July 09, 2011, 11:29:03 AM »
I vote for any more info in the resulting output. How should I know  what essid ap to link if more have the same name?. (And about MAC, I keep a text list of bad habits neighborhoods, as there are just few near my fix location). It will not hurt more info to differentiate from just a list of results, thanks.

Also, if udhcpc fail to assign an IP from wifi.sh, then I must manually run top in aterm to check and sudo pkill wpa* all 3 insistence of wpa_supplicant -B from RAM; Plus if I run wifi.sh few times consecutive, a longer/shorter list will appear, not necessarily the same all the time. I understand that wifi.sh is just a tool work in progress, but I will prefer not to copy the logic of wifi (which I do now  :-\) for my own wifi start script.
« Last Edit: July 09, 2011, 11:38:04 AM by nick65go »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: wifi.tcz
« Reply #16 on: July 09, 2011, 12:40:48 PM »
Still early in the development. Found and fixed a bug, hard coded, wlan0.
I am cleaning up any extra wpas! I have added some ideas already posted regarding special characters.
Thanks for feedback. Please have patience. 
10+ Years Contributing to Linux Open Source Projects.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: wifi.tcz
« Reply #17 on: July 09, 2011, 01:18:12 PM »
Great job thanks roberts


I agree to not including too much information, it's not needed for the majority.  In any case the mac of the AP's are easily obtained for those who feel they need it.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: wifi.tcz
« Reply #18 on: July 09, 2011, 04:19:42 PM »
Are you saying you just now hardcoded wlan0 or thebug was a hardcoded wlan0.
My linksys wireless adapter happens to be eth0.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: wifi.tcz
« Reply #19 on: July 09, 2011, 06:54:26 PM »
In v0.2 line 102 had wlan0 and so therefore some where seems multiple wpa_supplicants running.

v0.3 now posted, mainly a bug fix, db delimiter changed to tab & shell protect WPA password.
You must clear out (rm ) your wifi.db.
10+ Years Contributing to Linux Open Source Projects.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: wifi.tcz
« Reply #20 on: July 09, 2011, 11:49:42 PM »
Now when I boot with 'wifi.sh auto', the access point is found.
Udhcpc is run 3 times, but no IP address is assigned.
ps -x shows no udhcpc running.

I run 'wifi.sh auto' again, and I get my IP address.
ps -x shows:

udhcpc -n -i eth0

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14620
Re: wifi.tcz
« Reply #21 on: July 10, 2011, 12:21:11 AM »
Udhcpc is run 3 times, but no IP address is assigned.
ps -x shows no udhcpc running.

This is the normal behavior for udhcpc - I mean if you run the command manually and it doesn't get an ip address it will try three times and then give up.

..which probably means it didn't get a response from your router the first time.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: wifi.tcz
« Reply #22 on: July 10, 2011, 06:26:44 AM »
Now when I boot with 'wifi.sh auto', the access point is found.
Udhcpc is run 3 times, but no IP address is assigned.
ps -x shows no udhcpc running.

I run 'wifi.sh auto' again, and I get my IP address.
ps -x shows:

udhcpc -n -i eth0

Does it help if you increase the TRY loop from 3 to perhaps 5 or higher at line 70 ?
10+ Years Contributing to Linux Open Source Projects.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: wifi.tcz
« Reply #23 on: July 10, 2011, 07:50:25 AM »
I needed to add key restricted to line 64.

                else           
                        ifconfig ${WIFI} up               
                        sleep 2                           
                        iwconfig ${WIFI} essid ${SID} key ${KEY} key restricted
                fi

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: wifi.tcz
« Reply #24 on: July 10, 2011, 08:53:08 AM »
version 0.3 already?   but it's not available here yet  http://distro.ibiblio.org/tinycorelinux/3.x/tcz/src/   Kinda catch twenty two situation.  We can't download it from the official source and can't use the app-browser to download when a copy of it is already installed and required for the connection??


Maybe I'll try the network starter pack for a temporary connection while using the app-browser to get wifi v0.3?
 
« Last Edit: July 10, 2011, 09:47:09 AM by coreplayer2 »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: wifi.tcz
« Reply #25 on: July 10, 2011, 09:37:28 AM »
Use AppsAudit -> Updates  -> Check for Updates!
10+ Years Contributing to Linux Open Source Projects.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: wifi.tcz
« Reply #26 on: July 10, 2011, 09:40:59 AM »
lol  I'm not used to all these options yet.  :)

I succeeded by temporarily loading up network starter-pack to replace the deleted wifi app with the new version,  thanks

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: wifi.tcz
« Reply #27 on: July 10, 2011, 09:51:23 AM »
I had been investigating the multiple wpa_supplicants and had figured there were still some remnants of previous wifi connection managers to be removed,  am pleased to report I no longer have multiple wpa_supplicant instances running.
:)

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: wifi.tcz
« Reply #28 on: July 10, 2011, 10:17:47 AM »
I needed to add key restricted to line 64.

                else           
                        ifconfig ${WIFI} up               
                        sleep 2                           
                        iwconfig ${WIFI} essid ${SID} key ${KEY} key restricted
                fi

Hopefully that is universal.
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: wifi.tcz
« Reply #29 on: July 10, 2011, 10:18:44 AM »
I had been investigating the multiple wpa_supplicants and had figured there were still some remnants of previous wifi connection managers to be removed,  am pleased to report I no longer have multiple wpa_supplicant instances running.
:)
Thanks for feedback. Hopefully wifi.sh will work for many by the time 3.8 goes gold.
10+ Years Contributing to Linux Open Source Projects.