summaryrefslogtreecommitdiffstats
path: root/rc.wireless
Commit message (Collapse)AuthorAgeFilesLines
* 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