wok-6.x diff get-wifi-firmware/receipt @ rev 13851
extrema: add missing dir
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 09 17:25:36 2013 +0100 (2013-01-09) |
parents | 10dc8abeebb2 |
children | cca1658587e4 |
line diff
1.1 --- a/get-wifi-firmware/receipt Tue Jun 26 11:55:39 2012 +0200 1.2 +++ b/get-wifi-firmware/receipt Wed Jan 09 17:25:36 2013 +0100 1.3 @@ -17,6 +17,10 @@ 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 chroot $1 /usr/bin/get-wifi-firmware --get-free-firmware 1.12 + $install_resolver && rm -f $1/etc/resolv.conf 1.13 }