williahow
Group: Members
Posts: 8
Joined: Oct. 2004 |
|
Posted: Jan. 19 2005,22:37 |
|
There are some instructions posted here http://damnsmalllinux.org/cgi-bin....ipw2100
Updates are
1. Fiirmware files are located at http://ipw2100.sourceforge.net/firmware.php
2. The link to firmware.agent no longer works, so below are the contents of the script from debian package hotplug (0.0.20040329-16) - paste these into a firmware.agent file.
#!/bin/sh # # Firmware-specific hotplug policy agent. # # Kernel firmware hotplug params include: # # ACTION=%s [add or remove] # DEVPATH=%s [in 2.5 kernels, /sys/$DEVPATH] # FIRMWARE=%s # # HISTORY: # # 24-Jul-2003 Initial version of "new" hotplug agent. # # $Id: firmware.agent,v 1.3 2004/03/14 15:52:56 ukai Exp $ #
cd /etc/hotplug . ./hotplug.functions # DEBUG=yes export DEBUG
# directories with the firmware files FIRMWARE_DIRS="/lib/firmware /usr/local/lib/firmware /usr/lib/hotplug/firmware"
# mountpoint of sysfs SYSFS=$(sed -n 's/^.* \([^ ]*\) sysfs .*$/\1/p' /proc/mounts)
# use /proc for 2.4 kernels if [ "$SYSFS" = "" ]; then SYSFS=/proc fi
# # What to do with this firmware hotplug event? # case "$ACTION" in
add) if [ ! -e $SYSFS/$DEVPATH/loading ]; then sleep 1 fi
for DIR in $FIRMWARE_DIRS; do [ -e "$DIR/$FIRMWARE" ] || continue echo 1 > $SYSFS/$DEVPATH/loading cat "$DIR/$FIRMWARE" > $SYSFS/$DEVPATH/data echo 0 > $SYSFS/$DEVPATH/loading exit done
# the firmware was not found echo -1 > $SYSFS/$DEVPATH/loading
;;
remove) ;;
*) mesg "Firmware '$ACTION' event not supported" exit 1 ;;
esac
|