wireless-regdb: Use db.txt file for wlanap.cgi

- db.txt is the text file version of the wireless settings by country database
- Using db.txt means that regdbdump from crda is not required by wlanap.cgi
- This patch copies the db.txt file from the source tarball to /lib/firmware/ where
   it can be read by wlanap.cgi
- This version of the patch renames the db.txt file to regulatorydb.txt
- Updated rootfile to include regulatorydb.txt

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Adolf Belka
2021-08-05 23:01:51 +02:00
committed by Arne Fitzenreiter
parent 07e45272a0
commit 424464c2ad
2 changed files with 2 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
lib/firmware/regulatorydb.txt
lib/firmware/regulatory.db
lib/firmware/regulatory.db.p7s
#usr/lib/crda

View File

@@ -72,5 +72,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && make install
cp -vf $(DIR_APP)/db.txt /lib/firmware/regulatorydb.txt
@rm -rf $(DIR_APP)
@$(POSTBUILD)