contrib/package/freifunk-watchdog: don't kill watchdog daemon before sysupgrade, prepares support for atheros platforms
This commit is contained in:
parent
2dd2698e67
commit
4f6fca3be9
2 changed files with 1 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=freifunk-watchdog
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_BUILD_DEPENDS := uci
|
||||
|
@ -48,8 +48,6 @@ define Package/freifunk-watchdog/install
|
|||
$(INSTALL_BIN) ./files/freifunk-watchdog.init $(1)/etc/init.d/freifunk-watchdog
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ffwatchd $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/lib/upgrade
|
||||
$(INSTALL_DATA) ./files/sysupgrade.hook $(1)/lib/upgrade/kill-ffwatchd.sh
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,freifunk-watchdog))
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
kill_freifunk_watchdog() {
|
||||
v "Terminating ffwatchd..."
|
||||
killall ffwatchd
|
||||
killall crond
|
||||
}
|
||||
|
||||
export sysupgrade_pre_upgrade="${sysupgrade_pre_upgrade:+$sysupgrade_pre_upgrade }kill_freifunk_watchdog"
|
Loading…
Reference in a new issue