Skip to content

Commit

Permalink
Version bumprpi3-wifi-regdom to 1.1 (add /etc/modprobe.d entry)
Browse files Browse the repository at this point in the history
Belt-and-braces for regulatory domain setting
  • Loading branch information
sakaki- committed Aug 28, 2019
1 parent b891e57 commit 47241e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
@@ -0,0 +1,8 @@
# /etc/modprobe.d/rpi3-wifi-regdom

# WiFi regulatory domain country code.
# It is important to set this correctly, for compliance.
# The codes are ISO / IEC 3166 alpha2 codes
# (the special code 00 means the 'world' (i.e., unset) domain).

options cfg80211 ieee80211_regdom="GB"
Expand Up @@ -26,6 +26,8 @@ RDEPEND="${DEPEND}
src_install() {
newinitd "${FILESDIR}/init.d_${PN}-1" "${PN}"
newconfd "${FILESDIR}/conf.d_${PN}-1" "${PN}"
insinto "/etc/modprobe.d"
newins "${FILESDIR}/modprobe.d_${PN}-1" "${PN}.conf"
}

pkg_postinst() {
Expand All @@ -36,4 +38,3 @@ pkg_postinst() {
elog "appropriate ISO / IEC 3166 alpha2 country code therein."
fi
}

0 comments on commit 47241e4

Please sign in to comment.