Verified Commit 58b0b850 authored by Martin Prudek's avatar Martin Prudek
Browse files

Makefile: Add mbim

parent 8ce45ae7
......@@ -43,11 +43,17 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/lte-metr.init $(1)/etc/init.d/lte-metr
$(INSTALL_DIR) $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/mbim.sh $(1)/lib/netifd/proto/mbim-ltemetr.sh
endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
mv /lib/netifd/proto/mbim.sh /lib/netifd/proto/mbim.sh.orig
cp /lib/netifd/proto/mbim-ltemetr.sh /lib/netifd/proto/mbim.sh
/bin/mkdir -p /srv/lte-metr
/etc/init.d/lte-metr enable
/etc/init.d/lte-metr start
......@@ -74,6 +80,7 @@ define Package/$(PKG_NAME)/prerm
#!/bin/sh
/etc/init.d/lte-metr disable
/etc/init.d/lte-metr stop
mv /lib/netifd/proto/mbim.sh.orig /lib/netifd/proto/mbim.sh
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment