Skip to content
Snippets Groups Projects
Unverified Commit 8f5a7c90 authored by Jan-Tarek Butt's avatar Jan-Tarek Butt Committed by Matthias Schiffer
Browse files

gluon-mesh-batman-adv-core: stop WLAN and batman-adv before autoupdater upgrades

[Matthias Schiffer:
  - improve commit message
  - add pidof check
  - also call `wifi down`
]
parent 0c7457f1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
#!/bin/sh
. /lib/gluon/autoupdater/lib.sh
pidof netifd >/dev/null || start_enabled network
#!/bin/sh
. /lib/gluon/autoupdater/lib.sh
wifi down
stop network
ip link del bat0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment