r93 - / unstable/rt73/debian unstable/rt73/debian/conf unstable/rt73/debian/scripts
dexter at alioth.debian.org
dexter at alioth.debian.org
Sat Nov 17 02:25:59 UTC 2007
Author: dexter
Date: 2007-11-17 02:25:59 +0000 (Sat, 17 Nov 2007)
New Revision: 93
Added:
unstable/rt73/debian/README.modules
unstable/rt73/debian/conf/rt73.rules
Modified:
/
unstable/rt73/debian/README
unstable/rt73/debian/README.DFSG
unstable/rt73/debian/changelog
unstable/rt73/debian/modules.packages
unstable/rt73/debian/packages
unstable/rt73/debian/scripts/update-rt73-firmware.sh
Log:
* Renamed compiled package to rt73-modules-KVERS.
* Recommends: rutilt
* Fixed postinst script and added preinst script. Closes: #450947.
* The /lib/firmware/rt73.bin symlink is created with update-rt73-firmware
script, so the package won't conflict with rt73-firmware package.
* Added udev rule for automatic ifconfig up.
* The README.Debian files synchronized with other pkg-ralink packages.
Property changes on:
___________________________________________________________________
Name: svk:merge
- a768dc91-4809-499b-a2f1-8fca22b1f4b0:/local:82
+ a768dc91-4809-499b-a2f1-8fca22b1f4b0:/local:82
bea672ba-e00a-4fc0-a772-acead0b0dd41:/local:95
Modified: unstable/rt73/debian/README
===================================================================
--- unstable/rt73/debian/README 2007-11-15 01:42:09 UTC (rev 92)
+++ unstable/rt73/debian/README 2007-11-17 02:25:59 UTC (rev 93)
@@ -1,47 +1,25 @@
-rt73 for DEBIAN
----------------
+README.Debian for rt73-source
-MODULE-ASSISSTANT
+1. Building rt73 kernel modules
+===============================
-You can use module-assisstant to build the kernel module:
+This package is a source package that can be used to build modules that
+work with your custom built linux kernel. The source files are located
+in /usr/src/rt73.tar.bz2; unpacking that file in /usr/src will produce
+a build tree in /usr/src/modules/rt73/. (The tar file can also be
+unpacked elsewhere)
- $ m-a build rt73
-
+- The Debian way (with module-assistant): install the "module-assistant"
+ package and the kernel-headers-* package corresponding to the kernel
+ version you want to use, then run the following commands:
-OTHER DRIVERS
+ # module-assistant prepare # May not be needed
+ # module-assistant get rt73
+ # module-assistant build rt73
-The rt73-common file provides a /etc/modprobe.d/rt73 file which blacklists the
-other drivers from http://rt2x00.serialmonkeys.com site.
+ You should now have an rt73-modules-<version>.deb file in /usr/src,
+ which you can install with dpkg -i to get the modules installed.
-The blacklisted drivers are: prism2_usb, rt2500usb, rt2570, rt73usb.
-
-
-USAGE
-
-The rt73.ko driver should be loaded automatically. After that, the interface
-have to be up:
-
- # ifconfig wlan0 up
- # iwlist wlan0 scan
-
-
-FIRMWARE
-
-The rt73.bin firmware file can be downloaded with update-rt73-firmware
-command. The firmware file will be placed in /etc/firmware directory and
-symlinked as /lib/firmware/rt73.bin.
-
-Be careful! The driver can hang up and generate kernel OOPS if the firmware
-can not be loaded!
-
-
-INTERFACE NAME
-
-This serialmonkeys.com driver uses interface wlan0. The original Ralink
-driver uses interface name rausb0. You can use /sbin/nameif tool to rename the
-interface names or better create udev rule:
-
- KERNEL=="wlan*", SYSFS{address}=="00:de:ad:be:ef:00", NAME="wlan0"
-
-
- -- Piotr Roszatycki <dexter at debian.org> Thu, 18 Oct 2007 22:18:23 +0200
+- The "by hand" way: if you prefer handling your kernel by hand, then
+ you're supposed to know what to do with rt73-source and I won't
+ bother you any longer.
Modified: unstable/rt73/debian/README.DFSG
===================================================================
--- unstable/rt73/debian/README.DFSG 2007-11-15 01:42:09 UTC (rev 92)
+++ unstable/rt73/debian/README.DFSG 2007-11-17 02:25:59 UTC (rev 93)
@@ -1,9 +1,5 @@
-rt73 for DEBIAN
----------------
+README.DFSG for rt73
This upstream source archive was modified by Debian:
* The firmware file rt73.bin was removed.
-
-
- -- Piotr Roszatycki <dexter at debian.org> Mon, 05 Nov 2007 17:37:28 +0100
Added: unstable/rt73/debian/README.modules
===================================================================
--- unstable/rt73/debian/README.modules (rev 0)
+++ unstable/rt73/debian/README.modules 2007-11-17 02:25:59 UTC (rev 93)
@@ -0,0 +1,55 @@
+README.Debian for rt73-modules
+
+1. Interface name
+=================
+
+The default name of the interface is wlan%d.
+
+If you want to change the name of the interface, use the ifname option.
+For example, to change the name to rausb%d, you will have to run:
+
+ modprobe ifname=rausb%d
+
+This option could be made permanent by putting it in a file that have to
+be located in /etc/modprobe.d for 2.6 kernels and in /etc/modutils.d for
+2.4 kernels. For example, to change the name to rausb%d, you will have
+to use the following line
+
+ options rt73 ifname=rausb%d
+
+
+2. Configuration
+================
+
+Before using iwconfig or rutils utilities the interface have to be up with
+ifconfig command
+
+ # ifconfig wlan0 up
+
+There is defined udev rule /etc/udev/rules.d/85-rt73.rules which calls
+ifconfig automatically when an interface is detected.
+
+To configure your wireless network interface, you can use iwconfig from
+the wireless-tools package. It is possible to include the configuration
+into /etc/network/interfaces such as in the following example:
+
+auto wlan0
+iface wlan0 inet dhcp
+ wireless-mode managed
+ wireless-channel 6
+ wireless-essid my_wifi_network
+ wireless-rate 54M
+
+Please look at the documentation of the wireless-tools package for more
+information.
+
+
+3. Firmware
+===========
+
+The rt73.bin firmware file can be downloaded with update-rt73-firmware
+command. The firmware file will be placed in /etc/firmware directory and
+symlinked as /lib/firmware/rt73.bin.
+
+Be careful! The driver can hang up and generate kernel OOPS if the firmware
+can not be loaded!
Modified: unstable/rt73/debian/changelog
===================================================================
--- unstable/rt73/debian/changelog 2007-11-15 01:42:09 UTC (rev 92)
+++ unstable/rt73/debian/changelog 2007-11-17 02:25:59 UTC (rev 93)
@@ -1,14 +1,18 @@
rt73 (1:1.0.3.6-cvs20071114-dfsg1-1) unstable; urgency=low
- * New CVS snapshot with removed non-free binary firmware.
+ * New CVS snapshot with removed non-free binary firmware. Closes: #449397.
* Maintaining by pkg-ralink Alioth project.
- * Recommends: rt73-common
- * The /lib/firmware/rt73.bin symlink is created with postinst script, so the
- package won't conflict with rt73-firmware package.
+ * Renamed compiled package to rt73-modules-KVERS.
+ * Recommends: rutilt
+ * Fixed postinst script and added preinst script. Closes: #450947.
+ * The /lib/firmware/rt73.bin symlink is created with update-rt73-firmware
+ script, so the package won't conflict with rt73-firmware package.
* Do not blacklist other drivers by default.
+ * Added udev rule for automatic ifconfig up.
+ * The README.Debian files synchronized with other pkg-ralink packages.
* The source file contains the tool for fetching the latest CVS snapshot.
- -- Piotr Roszatycki <dexter at debian.org> Thu, 15 Nov 2007 02:35:52 +0100
+ -- Piotr Roszatycki <dexter at debian.org> Sat, 17 Nov 2007 02:12:00 +0100
rt73 (1:1.0.3.6-cvs20071013-1) unstable; urgency=low
@@ -50,4 +54,3 @@
* Updated URLs.
-- Piotr Roszatycki <dexter at debian.org> Fri, 29 Dec 2006 14:39:28 +0100
-
Added: unstable/rt73/debian/conf/rt73.rules
===================================================================
--- unstable/rt73/debian/conf/rt73.rules (rev 0)
+++ unstable/rt73/debian/conf/rt73.rules 2007-11-17 02:25:59 UTC (rev 93)
@@ -0,0 +1 @@
+SUBSYSTEM=="net", ACTION=="add", ENV{PHYSDEVDRIVER}=="rt73", RUN+="/sbin/ifconfig $env{INTERFACE} up"
Modified: unstable/rt73/debian/modules.packages
===================================================================
--- unstable/rt73/debian/modules.packages 2007-11-15 01:42:09 UTC (rev 92)
+++ unstable/rt73/debian/modules.packages 2007-11-17 02:25:59 UTC (rev 93)
@@ -36,17 +36,17 @@
Clean: sh
make clean || true
-Package: rt73-module-%{KVERS}
+Package: rt73-modules-%{KVERS}
Architecture: any
-Recommends: rt73-common
+Depends: rt73-common
%if %{KDREV}
Recommends: linux-image-%{KVERS} (= %{KDREV})
%else
Recommends: linux-image-%{KVERS}
%endif
-Provides: rt73-module
-Description: RT73(RT2571W) Wireless Lan Linux Driver - kernel module sources
- This package provides kernel modules.
+Provides: rt73-modules
+Description: RT73(RT2571W) Wireless Lan Linux Driver - kernel module
+ This package provides kernel module for Linux %{KVERS}
Install: sh
if [ -f %{KSRC}/scripts/Makefile.modinst ]; then
MODEXT=ko
@@ -56,10 +56,20 @@
.
yada install -lib -unstripped -into /lib/modules/%{KVERS}/kernel/drivers/net/wireless \
-as rt73.$MODEXT rt73.ko
+ yada install -as README.Debian debian/README
Postinst: sh
if [ "`uname -r`" = "%{KVERS}" ]; then
/sbin/depmod -a
fi
+ if [ "$1" = "configure" ]; then
+ if [ -e /boot/System.map-%{KVERS} ]; then
+ depmod -a -F /boot/System.map-%{KVERS} %{KVERS} || true
+ fi
+ fi
+Postrm: sh
+ if [ -e /boot/System.map-%{KVERS} ]; then
+ depmod -a -F /boot/System.map-%{KVERS} %{KVERS} || true
+ fi
Contains: unstripped kernel-modules
# Debug:
Modified: unstable/rt73/debian/packages
===================================================================
--- unstable/rt73/debian/packages 2007-11-15 01:42:09 UTC (rev 92)
+++ unstable/rt73/debian/packages 2007-11-17 02:25:59 UTC (rev 93)
@@ -41,6 +41,7 @@
mkdir -p modules/rt73/debian
sed 's/^rt73/rt73-source/' debian/changelog > modules/rt73/debian/changelog
cp -a debian/modules.packages modules/rt73/debian/packages
+ cp -a debian/README.modules modules/rt73/debian/README
%if %{is_yada_bundled}
cp -a debian/yada modules/rt73/debian
%endif
@@ -83,7 +84,8 @@
yada install -dir /etc/firmware /lib/firmware
yada install -sbin -script -as update-rt73-firmware debian/scripts/update-rt73-firmware.sh
yada install -man debian/scripts/update-rt73-firmware.8
- yada install -conf -ucf -into /etc/modprobe.d -as rt73 debian/conf/rt73.modprobe
+ yada install -conf -into /etc/modprobe.d -as rt73 debian/conf/rt73.modprobe
+ yada install -conf -into /etc/udev/rules.d -as 85-rt73.rules debian/conf/rt73.rules
yada symlink -into /lib/firmware /etc/firmware/rt73.bin
yada install -doc README Module/iwpriv_usage.txt
yada install -doc -as README.Debian debian/README
@@ -91,14 +93,12 @@
yada install -doc -as changelog CHANGELOG
Postinst: sh
if [ "$1" = "configure" ]; then
- if [ ! -f /lib/firmware/rt73.bin ] && [ ! -f /lib/firmware/`uname -r`/rt73.bin ]; then
+ if [ ! -f /lib/firmware/rt73.bin ] && [ ! -h /lib/firmware/rt73.bin ] \
+ && [ ! -f /lib/firmware/`uname -r`/rt73.bin ]; then
echo "Warning: the rt73.ko driver is useless without rt73.bin firmware!"
echo "Please download the firmware with update-rt73-firmware command."
echo ""
fi
- if [ ! -f /lib/firmware/rt73.bin ]; then
- ln -s /etc/firmware/rt73.bin /lib/firmware/rt73.bin
- fi
fi
Postrm: sh
if [ "$1" = "purge" ]; then
Modified: unstable/rt73/debian/scripts/update-rt73-firmware.sh
===================================================================
--- unstable/rt73/debian/scripts/update-rt73-firmware.sh 2007-11-15 01:42:09 UTC (rev 92)
+++ unstable/rt73/debian/scripts/update-rt73-firmware.sh 2007-11-17 02:25:59 UTC (rev 93)
@@ -2,7 +2,7 @@
# $Id: /svn/trunk/debian/dists/rt73/debian/scripts/update-rt73-firmware.sh 2424 2007-10-18T20:23:05.445223Z dexter $
#
-# (c) 2006-2007 Piotr Roszatycki <dexter at debian.org> GPL
+# (C) 2006, 2007 Piotr Roszatycki <dexter at debian.org> GPL
set -e
@@ -72,8 +72,13 @@
rm -rf "$tmpdir"
-echo "N: Done" 2>&1
+if [ ! -f /lib/firmware/rt73.bin ] && [ ! -h /lib/firmware/rt73.bin ]; then
+ printf "\nLinking:\n"
+ ln -vs /etc/firmware/rt73.bin /lib/firmware/rt73.bin
+fi
+printf "\nDone.\n" 2>&1
+
exit 0
cat << POD
@@ -110,6 +115,6 @@
B<wget>(1), L<http://www.ralinktech.com/>
-=head1 AUTHORS
+=head1 AUTHOR
-(c) 2006-2007 Piotr Roszatycki E<lt>dexter at debian.orgE<gt>.
+Copyright (C) 2006, 2007 Piotr Roszatycki E<lt>dexter at debian.orgE<gt>.
More information about the Pkg-ralink-commits
mailing list