Re: wifind(8) find your wifi

2016-06-05 Thread Alexander Hall
On June 4, 2016 11:11:13 AM GMT+02:00, Benjamin Baier wrote: >On Fri, 3 Jun 2016 00:26:12 +0800 >Ray Lai wrote: > >> Hi all, >> >> I got tired of configuring my wifi every time I had to move my >laptop. >> Here's a script a whipped up. It scans the wifi for known networks >and >> writes the str

Re: wifind(8) find your wifi

2016-06-04 Thread Craig Skinner
Hello Erling, On 2016-06-03 Fri 14:42 PM |, Erling Westenvik wrote: > > It is available on github: > Port it too, with your README or man page. Packaged as /usr/local/sbin/wiconfig instead of /etc/wiconfig # sh /etc/wiconfig iwi0 Becomes: # wiconfig iwi0 ... and /etc/apmd/resume is simpler

Re: wifind(8) find your wifi

2016-06-04 Thread Benjamin Baier
On Fri, 3 Jun 2016 00:26:12 +0800 Ray Lai wrote: > Hi all, > > I got tired of configuring my wifi every time I had to move my laptop. > Here's a script a whipped up. It scans the wifi for known networks and > writes the strongest one to /etc/hostname.if. Then it runs netstart. > Easy to use, sim

Re: wifind(8) find your wifi

2016-06-03 Thread Stefan Sperling
On Sat, Jun 04, 2016 at 02:38:06AM +0800, Ray Lai wrote: > On Fri, 3 Jun 2016 15:52:34 +0200 > Stefan Sperling wrote: > > One thing we should probably fix first is roaming support in the kernel. > > Do you mean 802.11r support? No, that extension seems to be about moving fast across a huge range

Re: wifind(8) find your wifi

2016-06-03 Thread Ray Lai
> On Jun 3, 2016, at 8:42 PM, Erling Westenvik wrote: > As much as I endorse and approve of any effort to create a good solution > for handling wifi's, I must say I find the use of perl and json > unnecessary for such a project. I've been using a "pure ksh" solution > named wiconfig since 2013 and

Re: wifind(8) find your wifi

2016-06-03 Thread Ray Lai
On Fri, 3 Jun 2016 10:33:47 +0100 skin...@britvault.co.uk (Craig Skinner) wrote: > Hi Ray, > > On 2016-06-03 Fri 00:26 AM |, Ray Lai wrote: > > > > I got tired of configuring my wifi every time I had to move my laptop. > > Here's a script a whipped up. > > port it up: http://www.OpenBSD.Org/f

Re: wifind(8) find your wifi

2016-06-03 Thread Ray Lai
On Fri, 3 Jun 2016 15:52:34 +0200 Stefan Sperling wrote: > On Fri, Jun 03, 2016 at 03:22:19PM +0200, Kamil Cholewiński wrote: > > Perhaps it's time that the best tool be chosen and made a part of the > > base install? I've already seen like a 100 different OBSD WiFi scripts > > floating around th

Re: wifind(8) find your wifi

2016-06-03 Thread Ray Lai
> On Jun 3, 2016, at 8:59 PM, Etienne wrote: > On 06/03/16 05:12, Ray Lai wrote: >>> >>> #!/bin/sh >>> >>> if [[ $1 == "home" ]]; then >>>doas ifconfig run0 nwid foonet wpa wpakey ultrasecret >>>doas dhclient run0 >>> fi >> Yup. The goal of wifind is to do exactly this, the moment I resume

Re: wifind(8) find your wifi

2016-06-03 Thread Etienne
On 06/03/16 14:31, Raf Czlonka wrote: May I know what's triggering it? I have something similar, but I need to click on a button to run it. /etc/apm/resume I presume :^) man 8 apmd Thanks.

Re: wifind(8) find your wifi

2016-06-03 Thread Stefan Sperling
On Fri, Jun 03, 2016 at 03:22:19PM +0200, Kamil Cholewiński wrote: > Perhaps it's time that the best tool be chosen and made a part of the > base install? I've already seen like a 100 different OBSD WiFi scripts > floating around the 'net, and naturally I also have a DIY one. No scripts for this,

Re: wifind(8) find your wifi

2016-06-03 Thread Raf Czlonka
On Fri, Jun 03, 2016 at 01:59:08PM BST, Etienne wrote: > On 06/03/16 05:12, Ray Lai wrote: > > > > > > #!/bin/sh > > > > > > if [[ $1 == "home" ]]; then > > > doas ifconfig run0 nwid foonet wpa wpakey ultrasecret > > > doas dhclient run0 > > > fi > > Yup. The goal of wifind is to do exact

Re: wifind(8) find your wifi

2016-06-03 Thread Kamil Cholewiński
Perhaps it's time that the best tool be chosen and made a part of the base install? I've already seen like a 100 different OBSD WiFi scripts floating around the 'net, and naturally I also have a DIY one.

Re: wifind(8) find your wifi

2016-06-03 Thread Etienne
On 06/03/16 05:12, Ray Lai wrote: #!/bin/sh if [[ $1 == "home" ]]; then doas ifconfig run0 nwid foonet wpa wpakey ultrasecret doas dhclient run0 fi Yup. The goal of wifind is to do exactly this, the moment I resume my laptop, without my interaction. May I know what's triggering it? I

Re: wifind(8) find your wifi

2016-06-03 Thread Erling Westenvik
As much as I endorse and approve of any effort to create a good solution for handling wifi's, I must say I find the use of perl and json unnecessary for such a project. I've been using a "pure ksh" solution named wiconfig since 2013 and which was posted here at @misc back in 2011 or 2012: http://o

Re: wifind(8) find your wifi

2016-06-03 Thread Craig Skinner
Hi Ray, On 2016-06-03 Fri 00:26 AM |, Ray Lai wrote: > > I got tired of configuring my wifi every time I had to move my laptop. > Here's a script a whipped up. port it up: http://www.OpenBSD.Org/faq/ports/guide.html Cheers! -- I know not with what weapons World War III will be fought, but Worl

Re: wifind(8) find your wifi

2016-06-02 Thread Ray Lai
> On Jun 3, 2016, at 6:17 AM, Gleydson Soares wrote: > > I usually just use a small script that lives in ~/bin > > cat ~/bin/wifi > > #!/bin/sh > > if [[ $1 == "home" ]]; then >doas ifconfig run0 nwid foonet wpa wpakey ultrasecret >doas dhclient run0 > fi Yup. The goal of wifind is to do

Re: wifind(8) find your wifi

2016-06-02 Thread Ray Lai
> On Jun 3, 2016, at 2:36 AM, Kamil Cholewiński wrote: >> On Thu, 02 Jun 2016, Ray Lai wrote: >> use JSON::PP; > > That's just my personal opinion, but JSON sucks for configuration files. > It's more of a human-readable data interchange format. > > It feels like the same functionality can be achi

Re: wifind(8) find your wifi

2016-06-02 Thread Kamil Cholewiński
On Thu, 02 Jun 2016, Ray Lai wrote: > use JSON::PP; That's just my personal opinion, but JSON sucks for configuration files. It's more of a human-readable data interchange format. It feels like the same functionality can be achieved with something much simpler, getent or CSV style. > my $tmp =

wifind(8) find your wifi

2016-06-02 Thread Ray Lai
Hi all, I got tired of configuring my wifi every time I had to move my laptop. Here's a script a whipped up. It scans the wifi for known networks and writes the strongest one to /etc/hostname.if. Then it runs netstart. Easy to use, simple config file, no arguments needed, perfect for /etc/apm/resu