Add dependecy checking to the download script

This commit is contained in:
Maurizio D'Addona
2016-01-10 08:22:35 +01:00
parent dc55cf3a18
commit b905ccdcae

View File

@@ -21,6 +21,10 @@ all: $(OSX_DRV)
@./extract-firmware.sh -x "$(OSX_DRV)"
$(OSX_DRV):
@echo ""
@echo "Checking dependencies for driver donwload..."
@which curl xzcat cpio
@echo ""
@# Ty to wvengen, see: https://github.com/patjak/bcwc_pcie/issues/14#issuecomment-167446787
@echo "Dowloading the driver, please wait..."
@(curl -s -L -r "$(RANGE)" "$(URL)" | xzcat -q | cpio --format odc -i -d "./$(FILE)") &> /dev/null || true