Re: [DNG] A shell script for network connections

2017-01-02 Thread KatolaZ
On Mon, Jan 02, 2017 at 12:28:04PM +0100, Didier Kryn wrote: [cut] > > This is a very valuable work, fitting nicely within the concept of a > minimal OS, and hopefully beyond. The difficulty of the work is, in my view, > in understanding the proliferation of wifi protocols, which is why you

Re: [DNG] A shell script for network connections

2017-01-02 Thread Didier Kryn
Le 31/12/2016 à 01:06, KatolaZ a écrit : That's a simple bash+dialog wrapper around ip/dhclient/wpa_cli, which can help configuring wired (ethernet) and wi-fi networks (only open and WPA+PSK, at the moment). Well, it's indeed not as simple as we might go, since dealing with the dialog interface

Re: [DNG] A shell script for network connections

2017-01-02 Thread KatolaZ
On Mon, Jan 02, 2017 at 01:43:14AM -0500, Steve Litt wrote: [cut] Hi Steve, > > In function configure_device(), you deduce whether it's wifi or wired > by the device's name, and stuff like eno1 or wlo1 comes out saying > "device can't be configured." > > One way to differentiate is the

Re: [DNG] A shell script for network connections

2017-01-01 Thread Steve Litt
On Sat, 31 Dec 2016 17:40:10 + KatolaZ wrote: > On Sat, Dec 31, 2016 at 05:15:56PM +, KatolaZ wrote: > > On Sat, Dec 31, 2016 at 10:38:48AM +, KatolaZ wrote: > > > > [cut] > > > > > > > > > > > Hi Steve, > > > > > > thanks for your encouragement. bash is

Re: [DNG] A shell script for network connections

2017-01-01 Thread KatolaZ
On Sun, Jan 01, 2017 at 10:03:18PM +1100, Tom Cassidy wrote: > Hi KatolaZ, > > I would suggest running setnet.sh through the shellcheck program to lint the > script. > > You can access it online[1] or it should be available in the repository[2]. > > It has support for checking portability

Re: [DNG] A shell script for network connections

2017-01-01 Thread Tom Cassidy
Hi KatolaZ, I would suggest running setnet.sh through the shellcheck program to lint the script. You can access it online[1] or it should be available in the repository[2]. It has support for checking portability issues[3] (eg. bashisms, POSIX compliance) depending on which shell is specified

Re: [DNG] A shell script for network connections

2016-12-31 Thread KatolaZ
On Sat, Dec 31, 2016 at 10:38:48AM +, KatolaZ wrote: [cut] > > > Hi Steve, > > thanks for your encouragement. bash is currently a requirement, since > I am using a few non-posix little things. So if you want to test it > and report bugs, please use it under bash atm since a few things

Re: [DNG] A shell script for network connections

2016-12-31 Thread KatolaZ
On Fri, Dec 30, 2016 at 09:23:39PM -0500, Steve Litt wrote: [cut] > So I added the following lines below it: > > > TMPFILE='/tmp/setnet.tmp' > echo "diatop: TMPFILE IS *$TMPFILE*." >

Re: [DNG] A shell script for network connections

2016-12-30 Thread Steve Litt
On Sat, 31 Dec 2016 00:06:04 + KatolaZ wrote: > Hi All, > > you might remember that a few weeks ago we discussed the possibility > of removing all the cluttering from network configuration tools, to > the point that someone (Steve Litt, I believe) even suggested that a

[DNG] A shell script for network connections

2016-12-30 Thread KatolaZ
Hi All, you might remember that a few weeks ago we discussed the possibility of removing all the cluttering from network configuration tools, to the point that someone (Steve Litt, I believe) even suggested that a few lines of shell code around a well-timed "iwlist scan | grep ESSID" could be