wok-next view get-wifi-firmware/receipt @ rev 21081

Tiny edits
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 24 11:36:03 2018 +0200 (2018-12-24)
parents f56bd5e4256c
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="get-wifi-firmware"
4 VERSION="2.0"
5 CATEGORY="non-free"
6 SHORT_DESC="Get misc Wi-Fi firmwares"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://hg.slitaz.org/wok/file/tip/$PACKAGE/stuff/$PACKAGE"
10 HOST_ARCH="any"
11 REPOLOGY="-"
13 compile_rules() {
14 install -Dm755 $stuff/$PACKAGE $install/usr/bin/$PACKAGE
16 $install/usr/bin/$PACKAGE --install
17 }
19 post_install() {
20 if [ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ]; then
21 install_resolver=true
22 else
23 install_resolver=false
24 fi
26 $install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf"
28 # directly support some freely distributable firmware drivers
29 chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware
31 $install_resolver && rm -f "$1/etc/resolv.conf"
32 }