wok-next rev 6949
Fix get-wifi-firmware to work if you use --root option in tazpkg get-install or tazpkg install options.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Oct 24 22:49:39 2010 +0000 (2010-10-24) |
parents | 3d8b6b59159f |
children | 868622df5913 |
files | get-wifi-firmware/receipt get-wifi-firmware/stuff/get-wifi-firmware |
line diff
1.1 --- a/get-wifi-firmware/receipt Sun Oct 24 21:07:48 2010 +0000 1.2 +++ b/get-wifi-firmware/receipt Sun Oct 24 22:49:39 2010 +0000 1.3 @@ -23,11 +23,12 @@ 1.4 { 1.5 # directly support some freely distributable firmware drivers 1.6 # intel 1.7 - get-iwlwifi-3945-firmware --firmware 1.8 - get-iwlwifi-4965-firmware --firmware 1.9 - get-iwlwifi-5000-firmware --firmware 1.10 + rootfs=$1 1.11 + get-iwlwifi-3945-firmware --firmware $rootfs 1.12 + get-iwlwifi-4965-firmware --firmware $rootfs 1.13 + get-iwlwifi-5000-firmware --firmware $rootfs 1.14 # ralink 1.15 - get-rt61-firmware --firmware 1.16 - get-rt73-firmware --firmware 1.17 - get-rt2870usb-firmware --firmware 1.18 + get-rt61-firmware --firmware $rootfs 1.19 + get-rt73-firmware --firmware $rootfs 1.20 + get-rt2870usb-firmware --firmware $rootfs 1.21 }
2.1 --- a/get-wifi-firmware/stuff/get-wifi-firmware Sun Oct 24 21:07:48 2010 +0000 2.2 +++ b/get-wifi-firmware/stuff/get-wifi-firmware Sun Oct 24 22:49:39 2010 +0000 2.3 @@ -120,7 +120,7 @@ 2.4 # We need drivers, the extractor and tools. 2.5 for pkg in linux-wireless wireless_tools $DEPENDS 2.6 do 2.7 - if [ ! -d /var/lib/tazpkg/installed/$pkg ]; then 2.8 + if [ ! -d $ROOT/var/lib/tazpkg/installed/$pkg ]; then 2.9 tazpkg get-install $pkg 2.10 fi 2.11 done