forked from DGNum/liminix
5590fea16e
This enable to wait for bridgeability of a WLAN interface via `iwinfo`. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
8 lines
180 B
Fennel
8 lines
180 B
Fennel
(local { : nl80211 } (require :iwinfo))
|
|
|
|
(fn is-bridgeable [ifname]
|
|
(let [mode (nl80211.mode ifname)]
|
|
(or (= mode "Master") (= mode "Master (VLAN)"))
|
|
))
|
|
|
|
{ : is-bridgeable }
|