From 9698657f7a5f60911a6d1be4ae0fcbd9c40d9580 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 17 Nov 2014 17:55:47 +0200 Subject: [PATCH] xpp: firmware: 203 as alias to (newer) 201 Latest Astribank firmware (as of Rev. 11426 also supports some newer hardware types, which will have the ID 203. Anyone installing this newer version will now have 203 as an alias, but older versions will not have it. --- drivers/dahdi/xpp/firmwares/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/dahdi/xpp/firmwares/Makefile b/drivers/dahdi/xpp/firmwares/Makefile index f2be560..e176ef0 100644 --- a/drivers/dahdi/xpp/firmwares/Makefile +++ b/drivers/dahdi/xpp/firmwares/Makefile @@ -20,7 +20,12 @@ install: mkdir -p $(TARGET) install $(SCRIPTS) $(TARGET)/ install -m 644 ../XppConfig.pm $(FIRMWARES) $(TARGET)/ - if [ ! -r $(TARGET)/USB_FW.202.hex ]; then \ - ln -s USB_FW.201.hex $(TARGET)/USB_FW.202.hex;\ + for id in 202 203; do \ + if [ ! -r $(TARGET)/USB_FW.$$id.hex ]; then \ + ln -s USB_FW.201.hex $(TARGET)/USB_FW.$$id.hex;\ + fi; \ + done + if [ ! -r $(TARGET)/FPGA_1161.203.hex ]; then \ + ln -s FPGA_1161.201.hex $(TARGET)/FPGA_1161.203.hex;\ fi