[Matthias Schiffer: - improve commit message - add pidof check - also call `wifi down` ]
@@ -27,6 +27,7 @@ define Build/Compile
endef
define Package/gluon-mesh-batman-adv-core/install
+ $(CP) ./files/* $(1)/
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
$(INSTALL_DIR) $(1)/lib/gluon/respondd
$(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/mesh-batman-adv-core.so
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. /lib/gluon/autoupdater/lib.sh
+pidof netifd >/dev/null || start_enabled network
@@ -0,0 +1,7 @@
+wifi down
+stop network
+ip link del bat0