<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slacknetsetup/rc.wireless, branch master</title>
<subtitle>Migration to iproute2-based network setup</subtitle>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/'/>
<entry>
<title>Take interface down at exit from rc.wireless.  Thanks to davjohn.</title>
<updated>2021-03-09T18:16:08+00:00</updated>
<author>
<name>Darren 'Tadgy' Austin</name>
<email>darren@afterdark.org.uk</email>
</author>
<published>2021-03-09T18:16:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=d6a0382cf0e974b9f70fd9ef30d066256aa67f96'/>
<id>d6a0382cf0e974b9f70fd9ef30d066256aa67f96</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.wireless: don't leave interfaces in up state as it prevents SLAAC.</title>
<updated>2021-03-09T17:11:58+00:00</updated>
<author>
<name>Darren 'Tadgy' Austin</name>
<email>darren@afterdark.org.uk</email>
</author>
<published>2021-03-09T17:11:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=229b40c7d922f820341f8963e796f01159141ad1'/>
<id>229b40c7d922f820341f8963e796f01159141ad1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update changelog comments in rc.wireless.</title>
<updated>2021-02-28T05:47:58+00:00</updated>
<author>
<name>Darren 'Tadgy' Austin</name>
<email>darren@afterdark.org.uk</email>
</author>
<published>2020-12-02T08:41:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=84391a812d19a2f899b4cfc76023f4b63e6bd4b8'/>
<id>84391a812d19a2f899b4cfc76023f4b63e6bd4b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>VLAN support.  Sync logging/IPv6 changes from tadgy-ipv6-fixes branch.</title>
<updated>2019-11-11T02:25:51+00:00</updated>
<author>
<name>Darren 'Tadgy' Austin</name>
<email>darren@afterdark.org.uk</email>
</author>
<published>2019-11-11T02:25:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=63ee3db06be3f43ca63873e75f28cd2223bcfa32'/>
<id>63ee3db06be3f43ca63873e75f28cd2223bcfa32</id>
<content type='text'>
rc.inet1:
* VLAN support added to rc.inet1{,.conf}.
* Created new info_log function to replace $LOGGING variable.
* When logging to syslog, use a tag of 'rc.inet1' with PID.
* Decrease script noisyness at non-debug levels.
* Add more debugging logging for testing.
* Use -4 when configuring IPv4 loopback address.
* Configure ::1 for IPv6 loopbacking.
* Use 'local' not 'declare' in functions.
* Move where DAD is disabled when setting IPv6 addresses.
* Add error checking to some calls to 'ip'.
* Walk backwards through interfaces when deconfiguring.
rc.wireless:
* Log to syslog, failling back to stdout.
* Output error to stderr if not called from rc.inet1.
Manpages and netconfig:
* Updated for new VLAN support.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rc.inet1:
* VLAN support added to rc.inet1{,.conf}.
* Created new info_log function to replace $LOGGING variable.
* When logging to syslog, use a tag of 'rc.inet1' with PID.
* Decrease script noisyness at non-debug levels.
* Add more debugging logging for testing.
* Use -4 when configuring IPv4 loopback address.
* Configure ::1 for IPv6 loopbacking.
* Use 'local' not 'declare' in functions.
* Move where DAD is disabled when setting IPv6 addresses.
* Add error checking to some calls to 'ip'.
* Walk backwards through interfaces when deconfiguring.
rc.wireless:
* Log to syslog, failling back to stdout.
* Output error to stderr if not called from rc.inet1.
Manpages and netconfig:
* Updated for new VLAN support.
</pre>
</div>
</content>
</entry>
<entry>
<title>More consistent logging</title>
<updated>2018-05-24T06:23:40+00:00</updated>
<author>
<name>Jakub Jankowski</name>
<email>shasta@toxcorp.com</email>
</author>
<published>2018-01-08T03:17:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=d97ffe48193b1dfa704caf1896075702686e66c4'/>
<id>d97ffe48193b1dfa704caf1896075702686e66c4</id>
<content type='text'>
Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Quote variables in tests</title>
<updated>2018-05-24T06:23:40+00:00</updated>
<author>
<name>Jakub Jankowski</name>
<email>shasta@toxcorp.com</email>
</author>
<published>2018-01-08T03:13:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=85adf99d2f9319415d9684be75a4d7793864d2c2'/>
<id>85adf99d2f9319415d9684be75a4d7793864d2c2</id>
<content type='text'>
Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use pkill/pgrep</title>
<updated>2018-05-24T06:23:40+00:00</updated>
<author>
<name>Jakub Jankowski</name>
<email>shasta@toxcorp.com</email>
</author>
<published>2018-01-08T02:49:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=59e0a7610c708c0799b141715863167ed87babd8'/>
<id>59e0a7610c708c0799b141715863167ed87babd8</id>
<content type='text'>
Instead of heavy subshelling, use pkill/pgrep. Also, be a bit more
specific on what we're killing.

Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of heavy subshelling, use pkill/pgrep. Also, be a bit more
specific on what we're killing.

Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace -a / -o in conditionals with &amp;&amp; / ||</title>
<updated>2018-05-24T06:23:40+00:00</updated>
<author>
<name>Jakub Jankowski</name>
<email>shasta@toxcorp.com</email>
</author>
<published>2018-01-08T02:41:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=cda761f22b855806f338ece31734df1ce4824ad6'/>
<id>cda761f22b855806f338ece31734df1ce4824ad6</id>
<content type='text'>
Conditional expression like  [ test1 -a test2 ] should be avoided as it
is not well defined.
See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128_16
and https://github.com/koalaman/shellcheck/wiki/SC2166

Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conditional expression like  [ test1 -a test2 ] should be avoided as it
is not well defined.
See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128_16
and https://github.com/koalaman/shellcheck/wiki/SC2166

Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Take HWADDR from sysfs</title>
<updated>2018-05-24T06:23:40+00:00</updated>
<author>
<name>Jakub Jankowski</name>
<email>shasta@toxcorp.com</email>
</author>
<published>2018-01-08T02:37:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=2e90f05b5634c51776bb7014aeef1f903d9a4122'/>
<id>2e90f05b5634c51776bb7014aeef1f903d9a4122</id>
<content type='text'>
Instead of "ip | sed", just read the sysfs file in which hardware
address is readily presented for us.

Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of "ip | sed", just read the sysfs file in which hardware
address is readily presented for us.

Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>is_wireless_device: fix UUoC and reorder</title>
<updated>2018-05-24T06:23:40+00:00</updated>
<author>
<name>Jakub Jankowski</name>
<email>shasta@toxcorp.com</email>
</author>
<published>2018-01-08T02:30:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rlworkman.net/slacknetsetup/commit/?id=63fcb919b0cdefae3ae7cd7f933c70169c454710'/>
<id>63fcb919b0cdefae3ae7cd7f933c70169c454710</id>
<content type='text'>
There's no need to $(cat .../uevent | grep DEVTYPE) and then compare it
to what we're looking for. grep can do all of it for us ("Useless Use of
Cat").
While at it, if we have three ways of checking whether a device is
wireless, let's order them from least expensive (checking dir is only
one stat()) to most expensive (iwconfig | grep). Proof of correctness:
if "iwconfig | grep" is returning true and the other two methods are
not, we will still reach "iwconfig | grep" in the series of if/elif.

Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There's no need to $(cat .../uevent | grep DEVTYPE) and then compare it
to what we're looking for. grep can do all of it for us ("Useless Use of
Cat").
While at it, if we have three ways of checking whether a device is
wireless, let's order them from least expensive (checking dir is only
one stat()) to most expensive (iwconfig | grep). Proof of correctness:
if "iwconfig | grep" is returning true and the other two methods are
not, we will still reach "iwconfig | grep" in the series of if/elif.

Signed-off-by: Jakub Jankowski &lt;shasta@toxcorp.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
