ubox: add example /etc/modules.conf + conffiles entry
authorFelix Fietkau <nbd@nbd.name>
Thu, 7 Apr 2022 10:01:44 +0000 (12:01 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 7 Apr 2022 10:01:56 +0000 (12:01 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/system/ubox/Makefile
package/system/ubox/files/modules.conf [new file with mode: 0644]

index 5f5570cd22a5526c325a0c911d3f3b4eeedf81df..d295778e6067b953a216abf17576f9a18eb1f5e3 100644 (file)
@@ -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
@@ -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
diff --git a/package/system/ubox/files/modules.conf b/package/system/ubox/files/modules.conf
new file mode 100644 (file)
index 0000000..f54345f
--- /dev/null
@@ -0,0 +1,3 @@
+# examples:
+# options mod1 option=val
+# blacklist mod2