archboot/hooks/arch_intel_wireless
2008-03-16 22:57:21 +01:00

31 lines
1.2 KiB
Text

run_hook ()
{
if grep -qw intel-wireless /proc/cmdline; then
echo "ARCH_INTEL_WIRELESS:"
echo "--------------------"
echo "You ACCEPTED the intel's licenses, intel wireless drivers are now available."
! [ -d /lib/firmware/ ] && mkdir -p /lib/firmware
mv /intel-firmware/* /lib/firmware/
echo "Unloading already loaded intel wireless modules ..."
modprobe -r ipw2100 > /dev/null 2>&1
modprobe -r ipw2200 > /dev/null 2>&1
modprobe -r iwl3945 > /dev/null 2>&1
modprobe -r iwl4965 > /dev/null 2>&1
echo "Retrigger udev uevents ..."
/etc/start_udev uevents
else
echo "ARCH_INTEL_WIRELESS USAGE:"
echo "--------------------"
echo "By default intel wireless loading is disabled!"
echo "In order to use those drivers you have to agree to intel's licenses"
echo "and append intel-wireless to boot prompt."
echo ""
echo "License files for the drivers are located here:"
echo "/usr/share/licenses/iwlwifi-4965-ucode/LICENSE"
echo "/usr/share/licenses/iwlwifi-3945-ucode/LICENSE"
echo "/lib/firmware/LICENSE.ipw2200-fw"
echo "/lib/firmware/LICENSE.ipw2100-fw"
echo "By appending intel-wireless to boot prompt you accept those licenses!"
echo "--------------------"
fi
}