summaryrefslogtreecommitdiffstats
path: root/rc.wireless
Commit message (Collapse)AuthorAgeFilesLines
* Take interface down at exit from rc.wireless. Thanks to davjohn.current-20210318Darren 'Tadgy' Austin2021-03-091-4/+6
|
* rc.wireless: don't leave interfaces in up state as it prevents SLAAC.tadgyDarren 'Tadgy' Austin2021-03-091-5/+6
|
* Update changelog comments in rc.wireless.Darren 'Tadgy' Austin2021-02-271-0/+3
|
* VLAN support. Sync logging/IPv6 changes from tadgy-ipv6-fixes branch.Darren 'Tadgy' Austin2019-11-111-3/+8
| | | | | | | | | | | | | | | | | | | | 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.
* More consistent loggingJakub Jankowski2018-05-241-2/+2
| | | | Signed-off-by: Jakub Jankowski <shasta@toxcorp.com>
* Quote variables in testsJakub Jankowski2018-05-241-3/+3
| | | | Signed-off-by: Jakub Jankowski <shasta@toxcorp.com>
* Use pkill/pgrepJakub Jankowski2018-05-241-4/+2
| | | | | | | Instead of heavy subshelling, use pkill/pgrep. Also, be a bit more specific on what we're killing. Signed-off-by: Jakub Jankowski <shasta@toxcorp.com>
* Replace -a / -o in conditionals with && / ||Jakub Jankowski2018-05-241-3/+3
| | | | | | | | | 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 <shasta@toxcorp.com>
* Take HWADDR from sysfsJakub Jankowski2018-05-241-1/+1
| | | | | | | Instead of "ip | sed", just read the sysfs file in which hardware address is readily presented for us. Signed-off-by: Jakub Jankowski <shasta@toxcorp.com>
* is_wireless_device: fix UUoC and reorderJakub Jankowski2018-05-241-3/+3
| | | | | | | | | | | | | 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 <shasta@toxcorp.com>
* rc.wireless: Migrate HWADDR getting from ifconfig to iproute2Robby Workman2017-07-111-1/+1
| | | | TODO: Someone fluent with sed needs to review this...
* rc.wireless: Migrate ifconfig --> ip link set dev $IFRobby Workman2017-07-111-1/+1
|
* Initial commit of rc.inet1* and rc.wireless*Robby Workman2017-01-061-0/+342
If other files are needed, they can be added later