From 30d7ca5999ac7f5e0e9a68afcbe7c9157c68dba1 Mon Sep 17 00:00:00 2001
From: Sidney Kuyateh <sidneyjohn23@kuyateh.eu>
Date: Wed, 4 Dec 2024 19:21:54 +0100
Subject: [PATCH] Remove ffac-mt7915-hotfix as it was added to the
 community-packages

---
 ffac-mt7915-hotfix/LICENSE                    | 21 ---------
 ffac-mt7915-hotfix/Makefile                   | 37 ---------------
 ffac-mt7915-hotfix/README.md                  | 46 -------------------
 .../files/lib/gluon/mt7915/hotfix.sh          |  5 --
 .../files/usr/lib/micron.d/mt7915-hotfix      |  2 -
 5 files changed, 111 deletions(-)
 delete mode 100644 ffac-mt7915-hotfix/LICENSE
 delete mode 100644 ffac-mt7915-hotfix/Makefile
 delete mode 100644 ffac-mt7915-hotfix/README.md
 delete mode 100755 ffac-mt7915-hotfix/files/lib/gluon/mt7915/hotfix.sh
 delete mode 100644 ffac-mt7915-hotfix/files/usr/lib/micron.d/mt7915-hotfix

diff --git a/ffac-mt7915-hotfix/LICENSE b/ffac-mt7915-hotfix/LICENSE
deleted file mode 100644
index fd31e5e..0000000
--- a/ffac-mt7915-hotfix/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2024 Felix Baumann
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/ffac-mt7915-hotfix/Makefile b/ffac-mt7915-hotfix/Makefile
deleted file mode 100644
index 236f6ff..0000000
--- a/ffac-mt7915-hotfix/Makefile
+++ /dev/null
@@ -1,37 +0,0 @@
-# SPDX-FileCopyrightText: 2024 Felix Baumann (FFAC)
-# SPDX-License-Identifier: MIT
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=ffac-mt7915-hotfix
-PKG_VERSION:=1
-PKG_RELEASE:=1
-
-PKG_LICENSE:=MIT
-
-PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
-
-include $(TOPDIR)/../package/gluon.mk
-
-define Package/$(PKG_NAME)
-  SECTION:=gluon
-  CATEGORY:=Gluon
-  TITLE:=reload mt7915-firmware twice a day
-  DEPENDS:=@(TARGET_mediatek_filogic||TARGET_ramips_mt7621) kmod-mt7915e +gluon-core +micrond
-  MAINTAINER:=Freifunk Aachen <kontakt@freifunk-aachen.de>
-endef
-
-define Build/Prepare
-  mkdir -p $(PKG_BUILD_DIR)
-endef
-
-define Build/Configure
-endef
-
-define Build/Compile
-endef
-
-define Package/$(PKG_NAME)/install
-  $(CP) ./files/* $(1)/
-endef
-
-$(eval $(call BuildPackage,$(PKG_NAME)))
diff --git a/ffac-mt7915-hotfix/README.md b/ffac-mt7915-hotfix/README.md
deleted file mode 100644
index 3ab5872..0000000
--- a/ffac-mt7915-hotfix/README.md
+++ /dev/null
@@ -1,46 +0,0 @@
-mt7915 hotfix
-=============
-
-This script reloads mt7915-firmware twice a day on targets ramips-mt7621
-and mediatek-filogic. It's meant as a hotfix for the mcu timeout issue:
-https://github.com/freifunk-gluon/gluon/issues/3154
-The issue popped up with Gluon v2023.2, earlier releases are not affected.
-
-v1 is currently just a workaround
-v2 might become an actual hotfix hence the name
-
-A first idea for a hotfix was proposed by blocktrron:
-https://github.com/freifunk-gluon/gluon/pull/3212
-
-Create a file `modules` with the following content in your `./gluon/site/`
-directory and add these lines: 
-
-```
-GLUON_SITE_FEEDS="community"
-PACKAGES_COMMUNITY_REPO=https://github.com/freifunk-gluon/community-packages.git
-PACKAGES_COMMUNITY_COMMIT=*/missing/*
-PACKAGES_COMMUNITY_BRANCH=master
-```
-
-Now you can add the package `ffac-mt7915-hotfix` to your site.mk
-(`*/missing/*` has to be replaced by the github-commit-ID of the version you
-want to use, you have to pick it manually.)
-
-Further info on the issue this tries to prevent from happening:
-I've seen the MCU timeout issue happening as early as 16 hours of uptime.
-MCU timeouts result in WiFi not working. WiFi mesh nodes running into the
-issue go offline until they are rebooted manually while any wired node is
-still accessible via ssh.
-
-On most devices it will take days or weeks for this issue to manifest,
-while others are affected daily. This is due to the difference in clients
-that are connecting to it on a frequent base. The more people frequent
-the device the more it goes offline.
-Twice a day might seem exaggerated to some but the it's fast so why not.
-I want to minimize downtime and therefore reload wifi right before heavy
-use. Once for sunrise (daytime) and and once before dawn (when bars open).
-
-It's not clear whether this fix is required on mediatek-filogic.
-Freifunk Aachen is only testing it on ramips-mt7621 currently.
-mediatek-filogic is unstable enough that I suggest rebooting the target
-3 times a day. See package [ffac-threetime-reboot](https://github.com/freifunk-gluon/community-packages/tree/master/ffac-threetime-reboot)
diff --git a/ffac-mt7915-hotfix/files/lib/gluon/mt7915/hotfix.sh b/ffac-mt7915-hotfix/files/lib/gluon/mt7915/hotfix.sh
deleted file mode 100755
index c552eda..0000000
--- a/ffac-mt7915-hotfix/files/lib/gluon/mt7915/hotfix.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-logger -t "ffac-mt7915-hotfix" -p debug "reloading wifi firmware now"
-rmmod mt7915e
-modprobe mt7915e
-wifi
diff --git a/ffac-mt7915-hotfix/files/usr/lib/micron.d/mt7915-hotfix b/ffac-mt7915-hotfix/files/usr/lib/micron.d/mt7915-hotfix
deleted file mode 100644
index b72d785..0000000
--- a/ffac-mt7915-hotfix/files/usr/lib/micron.d/mt7915-hotfix
+++ /dev/null
@@ -1,2 +0,0 @@
-# run every day at 05:45 and 17:45
-45 5,17 * * * /lib/gluon/mt7915/hotfix.sh
-- 
GitLab