Lakka-LibreELEC/packages/network/iw/scripts/setregdomain
Matthias Reichl f7146be3ad iw: configure regulatory domain from .cache/regdomain.conf
Signed-off-by: Matthias Reichl <hias@horus.com>
2020-01-20 13:28:33 +01:00

8 lines
188 B
Bash
Executable file

#!/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"