aboutsummaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2013-05-27 17:51:58 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2013-05-27 17:51:58 +0200
commitfac688ec4be9892c2c5e64977e8d25cc0b3dd341 (patch)
tree6b32ef7d8a4cd76ad7bdaafaa8f439ad1f4ad6b3 /CHANGES
parentf7fdd909ee36570a64b8f91ce69dd1c51d42d054 (diff)
downloadvicious-legacy-fac688ec4be9892c2c5e64977e8d25cc0b3dd341.tar.xz
wifi: add support for /usr/bin binary path
Years ago iwconfig started its life in /sbin. Then some distributions moved it to /usr/bin. Then in 2012 some projects started pushing for deprecation of /usr/sbin and merging everything into /usr/bin. We now search paths including /usr/bin for the iwconfig binary. This is because sbin paths are not usually in non privileged user PATH, so we help io.popen locate the binary on the file-system. We do this search in the following way: - default to basename only, 'iwconfig' for the iwconfig variable - search paths one by one once and redeclare variable iwconfig with full path if binary is found in any - avoid searching paths on next execution if iwconfig variable already contains a path
Diffstat (limited to 'CHANGES')
0 files changed, 0 insertions, 0 deletions