[pkg-wpa-devel] r1515 - in /crda/trunk/debian: control crda.default crda.udev rules setregdomain
kelmo-guest at users.alioth.debian.org
kelmo-guest at users.alioth.debian.org
Sun Apr 11 11:50:30 UTC 2010
Author: kelmo-guest
Date: Sun Apr 11 11:50:30 2010
New Revision: 1515
URL: http://svn.debian.org/wsvn/pkg-wpa/?sc=1&rev=1515
Log:
Reinstate setregdomain, so that the admin can override the regdomain easily, if needed. No override set based on timezone though.
Added:
crda/trunk/debian/crda.default
crda/trunk/debian/crda.udev
crda/trunk/debian/setregdomain
Modified:
crda/trunk/debian/control
crda/trunk/debian/rules
Modified: crda/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/control?rev=1515&op=diff
==============================================================================
--- crda/trunk/debian/control (original)
+++ crda/trunk/debian/control Sun Apr 11 11:50:30 2010
@@ -15,6 +15,7 @@
Package: crda
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, wireless-regdb
+Recommends: iw
Description: wireless Central Regulatory Domain Agent
This package provides a Central Regulatory Domain Agent (CRDA) to be used by
the Linux kernel cf80211 wireless subsystem to query and apply the regulatory
Added: crda/trunk/debian/crda.default
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/crda.default?rev=1515&op=file
==============================================================================
--- crda/trunk/debian/crda.default (added)
+++ crda/trunk/debian/crda.default Sun Apr 11 11:50:30 2010
@@ -1,0 +1,11 @@
+# Set REGDOMAIN to a ISO/IEC 3166-1 alpha2 country code so that iw(8) may set
+# the initial regulatory domain setting for IEEE 802.11 devices which operate
+# on this system.
+#
+# Governments assert the right to regulate usage of radio spectrum within
+# their respective territories so make sure you select a ISO/IEC 3166-1 alpha2
+# country code suitable for your location or you may infringe on local
+# legislature. See `/usr/share/zoneinfo/zone.tab' for a table of timezone
+# descriptions containing ISO/IEC 3166-1 alpha2 country codes.
+
+REGDOMAIN=
Added: crda/trunk/debian/crda.udev
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/crda.udev?rev=1515&op=file
==============================================================================
--- crda/trunk/debian/crda.udev (added)
+++ crda/trunk/debian/crda.udev Sun Apr 11 11:50:30 2010
@@ -1,0 +1,1 @@
+SUBSYSTEM=="ieee80211", ACTION=="add", RUN+="/lib/crda/setregdomain"
Modified: crda/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/rules?rev=1515&op=diff
==============================================================================
--- crda/trunk/debian/rules (original)
+++ crda/trunk/debian/rules Sun Apr 11 11:50:30 2010
@@ -21,6 +21,8 @@
install: install-stamp
install-stamp: build-stamp
dh install
+ install -D -o 0 -g 0 -m 755 debian/setregdomain \
+ debian/crda/lib/crda/setregdomain
touch $@
binary-arch: install
Added: crda/trunk/debian/setregdomain
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/setregdomain?rev=1515&op=file
==============================================================================
--- crda/trunk/debian/setregdomain (added)
+++ crda/trunk/debian/setregdomain Sun Apr 11 11:50:30 2010
@@ -1,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+REGDOMAIN=
+CRDA_CONF=/etc/default/crda
+
+[ -r "$CRDA_CONF" ] && . "$CRDA_CONF"
+[ -z "$REGDOMAIN" ] && exit 0
+
+# In the future, iw may be moved to / filesystem
+[ -x /sbin/iw ] && exec /sbin/iw reg set "$REGDOMAIN"
+
+# Wait for /usr, it may not be mounted yet
+(
+ . /lib/udev/hotplug.functions
+ wait_for_file /usr/sbin/iw
+ exec /usr/sbin/iw reg set "$REGDOMAIN"
+) &
More information about the Pkg-wpa-devel
mailing list