wok-4.x rev 12312

get-wifi-firmware: fix post_install (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 28 09:42:42 2012 +0200 (2012-07-28)
parents 2f85faa0e9ba
children 8c90b00cb043
files get-wifi-firmware/receipt
line diff
     1.1 --- a/get-wifi-firmware/receipt	Sat Jul 28 08:52:03 2012 +0200
     1.2 +++ b/get-wifi-firmware/receipt	Sat Jul 28 09:42:42 2012 +0200
     1.3 @@ -21,6 +21,9 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 +  install_resolver=false
     1.8 +  [ -s /etc/resolv.conf -a ! -s $1/etc/resolv.conf ] && install_resolver=true
     1.9 +  $install_resolver && cp /etc/resolv.conf $1/etc/resolv.conf
    1.10    # directly support some freely distributable firmware drivers 
    1.11    # intel
    1.12    chroot $1/ get-iwlwifi-3945-firmware --firmware
    1.13 @@ -30,4 +33,5 @@
    1.14    chroot $1/ get-rt61-firmware --firmware
    1.15    chroot $1/ get-rt73-firmware --firmware
    1.16    chroot $1/ get-rt2870usb-firmware --firmware
    1.17 +  $install_resolver && rm -f $1/etc/resolv.conf
    1.18  }