# SliTaz package receipt. PACKAGE="get-wifi-firmware" VERSION="2.0" CATEGORY="non-free" SHORT_DESC="Get misc wifi firmwares." MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp stuff/$PACKAGE $fs/usr/bin for i in b43 b43legacy ipw2100 ipw2200 rt61 rt73 rt2860 zd1211 \ rt61pci rt73usb rt2870usb zd1211rw \ iwlwifi-3945 iwlwifi-4965 iwlwifi-5000 iwlwifi-5150 iwlwifi-1000 iwlwifi-6000; do ln -s $PACKAGE $fs/usr/bin/get-$i-firmware done } post_install() { install_resolver=false [ -s /etc/resolv.conf -a ! -s $1/etc/resolv.conf ] && install_resolver=true $install_resolver && cp /etc/resolv.conf $1/etc/resolv.conf # directly support some freely distributable firmware drivers # intel chroot $1/ get-iwlwifi-3945-firmware --firmware chroot $1/ get-iwlwifi-4965-firmware --firmware chroot $1/ get-iwlwifi-5000-firmware --firmware # ralink chroot $1/ get-rt61-firmware --firmware chroot $1/ get-rt73-firmware --firmware chroot $1/ get-rt2870usb-firmware --firmware $install_resolver && rm -f $1/etc/resolv.conf }