crda: /etc/wireless-regdom -> /etc/wireless-regdom.conf

This commit is contained in:
Juan RP 2015-06-03 19:54:00 +02:00
parent 07c86c2f45
commit 0e3a864812
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,5 @@
#!/bin/sh
unset WIRELESS_REGDOM
. /etc/wireless-regdom
. /etc/wireless-regdom.conf
[ -n "${WIRELESS_REGDOM}" ] && iw reg set ${WIRELESS_REGDOM}

View file

@ -14,12 +14,11 @@ license="ISC"
homepage="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
distfiles="https://kernel.org/pub/software/network/crda/${pkgname}-${version}.tar.xz https://www.kernel.org/pub/software/network/wireless-regdb/${_dbname}-${_dbversion}.tar.xz"
checksum="43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf 438d7f3d62686bc997098d17fe1aff95c6f6ec061aaab90ab7c2c17e8451ce85"
conf_files="/etc/wireless-regdom"
conf_files="/etc/wireless-regdom.conf"
build_options="wardrive"
desc_option_wardrive="Disable CRDA checks for wardriving competitions"
post_extract() {
if [ "$build_option_wardrive" ]; then
sed -i 's/([0-9][0-9])/(33)/g' ${_dbsrc}/db.txt # Max 2W =~ 33dBm
@ -47,7 +46,7 @@ do_install() {
for dom in $(grep ^country db.txt | cut -d' ' -f2 | sed 's|:||g'); do
echo "#WIRELESS_REGDOM=\"${dom}\"" >> ${DESTDIR}/etc/wireless-regdom.tmp
done
sort -u ${DESTDIR}/etc/wireless-regdom.tmp >> ${DESTDIR}/etc/wireless-regdom
sort -u ${DESTDIR}/etc/wireless-regdom.tmp >> ${DESTDIR}/etc/wireless-regdom.conf
rm ${DESTDIR}/etc/wireless-regdom.tmp
vbin ${FILESDIR}/set-wireless-regdom