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`
]
This commit is contained in:
Jan-Tarek Butt 2016-07-19 02:53:48 +02:00 committed by Matthias Schiffer
parent 0c7457f122
commit 8f5a7c9001
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
3 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
#!/bin/sh
. /lib/gluon/autoupdater/lib.sh
pidof netifd >/dev/null || start_enabled network

View File

@ -0,0 +1,7 @@
#!/bin/sh
. /lib/gluon/autoupdater/lib.sh
wifi down
stop network
ip link del bat0