Skip to content

Commit

Permalink
ubox: add example /etc/modules.conf + conffiles entry
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Apr 7, 2022
1 parent ff09905 commit 4ec10da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package/system/ubox/Makefile
Expand Up @@ -33,6 +33,10 @@ define Package/ubox
100:/sbin/modprobe:/sbin/kmodloader
endef

define Package/ubox/conffiles
/etc/modules.conf
endef

define Package/getrandom
SECTION:=base
CATEGORY:=Base system
Expand All @@ -53,10 +57,11 @@ define Package/getrandom/install
endef

define Package/ubox/install
$(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/lib $(1)/usr/bin
$(INSTALL_DIR) $(1)/sbin $(1)/usr/sbin $(1)/lib $(1)/usr/bin $(1)/etc

$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{kmodloader,validate_data} $(1)/sbin/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libvalidate.so $(1)/lib
$(INSTALL_DATA) ./files/modules.conf $(1)/etc/modules.conf
endef

define Package/logd/install
Expand Down
3 changes: 3 additions & 0 deletions package/system/ubox/files/modules.conf
@@ -0,0 +1,3 @@
# examples:
# options mod1 option=val
# blacklist mod2

0 comments on commit 4ec10da

Please sign in to comment.