mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
iw: configure regulatory domain from .cache/regdomain.conf
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
76a3dcb991
commit
f7146be3ad
@ -14,3 +14,8 @@ PKG_LONGDESC="A new nl80211 based CLI configuration utility for wireless devices
|
||||
pre_configure_target() {
|
||||
export LDFLAGS="$LDFLAGS -pthread"
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/lib/iw
|
||||
cp $PKG_DIR/scripts/setregdomain $INSTALL/usr/lib/iw
|
||||
}
|
||||
|
8
packages/network/iw/scripts/setregdomain
Executable file
8
packages/network/iw/scripts/setregdomain
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
REGDOMAIN=
|
||||
REGDOMAIN_CONF="/storage/.cache/regdomain.conf"
|
||||
[ -r "$REGDOMAIN_CONF" ] && . "$REGDOMAIN_CONF"
|
||||
[ -z "$REGDOMAIN" ] && exit 0
|
||||
|
||||
exec /usr/sbin/iw reg set "$REGDOMAIN"
|
1
packages/network/iw/udev.d/60-iw-regdomain.rules
Normal file
1
packages/network/iw/udev.d/60-iw-regdomain.rules
Normal file
@ -0,0 +1 @@
|
||||
SUBSYSTEM=="ieee80211", ACTION=="add", RUN+="/usr/lib/iw/setregdomain"
|
Loading…
x
Reference in New Issue
Block a user