From: Sven Eckelmann Date: Mon, 31 Jan 2022 13:44:18 +0000 (+0100) Subject: om-watchdog: Drop unused package X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8a8b7b423428309d66c96d93dc11499e21b665cb;p=openwrt%2Fstaging%2Fstintel.git om-watchdog: Drop unused package All devices which used this package migrated to the kernel GPIO-line watchdog driver and configure it over their DT. Signed-off-by: Sven Eckelmann --- diff --git a/package/kernel/om-watchdog/Makefile b/package/kernel/om-watchdog/Makefile deleted file mode 100644 index b0de3de74e..0000000000 --- a/package/kernel/om-watchdog/Makefile +++ /dev/null @@ -1,36 +0,0 @@ -# -# Copyright (C) 2011 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=om-watchdog -PKG_RELEASE:=4 - -include $(INCLUDE_DIR)/package.mk - -define Package/om-watchdog - SECTION:=base - CATEGORY:=Base system - TITLE:=om watchdog - URL:=http://openwrt.org/ -endef - -define Package/om-watchdog/description - This package contains the hw watchdog script for the OM1P and OM2P device. -endef - -define Build/Compile -endef - -define Package/om-watchdog/install - $(INSTALL_DIR) $(1)/etc/init.d/ - $(INSTALL_DIR) $(1)/sbin/ - $(INSTALL_BIN) ./files/om-watchdog.init $(1)/etc/init.d/om-watchdog - $(INSTALL_BIN) ./files/om-watchdog $(1)/sbin/om-watchdog -endef - -$(eval $(call BuildPackage,om-watchdog)) diff --git a/package/kernel/om-watchdog/files/om-watchdog b/package/kernel/om-watchdog/files/om-watchdog deleted file mode 100644 index d730c68447..0000000000 --- a/package/kernel/om-watchdog/files/om-watchdog +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -GPIO=$1 - -trap "" INT HUP - -echo $GPIO > /sys/class/gpio/export -echo out > /sys/class/gpio/gpio${GPIO}/direction - -while true; do - echo 1 > /sys/class/gpio/gpio${GPIO}/value - sleep 1 - echo 0 > /sys/class/gpio/gpio${GPIO}/value - sleep 180 -done diff --git a/package/kernel/om-watchdog/files/om-watchdog.init b/package/kernel/om-watchdog/files/om-watchdog.init deleted file mode 100644 index 8cbac043e4..0000000000 --- a/package/kernel/om-watchdog/files/om-watchdog.init +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh /etc/rc.common -# -# Copyright (C) 2011 OpenWrt.org -# - -START=11 -STOP=11 - -USE_PROCD=1 -NAME=om-watchdog -PROG=/sbin/om-watchdog - -get_gpio() { - local board=$(board_name) - - if [ "$board" = "teltonika,rut5xx" ]; then - # ramips - return 11 - else - #we assume it is om1p in this case - return 3 - fi - - return 255 -} - -start_service() { - get_gpio - gpio="$?" - [ "$gpio" != "255" ] || return - - procd_open_instance - procd_set_param command "${PROG}" "${gpio}" - procd_set_param respawn - procd_close_instance -}