1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Add a directory by kernel instead of a common root, add qnap-301w and rpi4 kernel 6.1 suppport

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-04-22 08:07:24 +02:00
parent e910436a7a
commit 46837ec4c0
9459 changed files with 362648 additions and 116345 deletions

View file

@ -0,0 +1,39 @@
#
# Copyright (C) 2019 Teltonika
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/download.mk
PKG_NAME:=modems
PKG_VERSION:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/modems
SECTION:=utils
CATEGORY:=Utilities
TITLE:=3G/4G modem list
endef
define Build/Compile
endef
define Package/modems/install
$(INSTALL_DIR) $(1)/lib/network/wwan/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/data/* $(1)/lib/network/wwan/
#in order to keep the Lede GIT repo free of filenames with colons,
#we name the files xxxx-yyyy
# and rename here after copying to the build directory
shopt -s nullglob ; \
for filevar in $(1)/lib/network/wwan/*-* ; \
do \
FILENAME=$$$$(basename $$$$filevar) ; \
NEWNAME=$$$${FILENAME//-/:} ; \
mv "$(1)/lib/network/wwan/$$$$FILENAME" "$(1)/lib/network/wwan/$$$$NEWNAME" ; \
done
endef
$(eval $(call BuildPackage,modems))