aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-18 02:21:13 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-21 14:24:49 +0100
commit1fa04b5d9fb1cba56a8597d6da9e1d52b8030f6b (patch)
treeda02f4bb267128497f1ad7e3c755c8685d8005d1 /target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan
parente93626f1f47ec6c1995067c9ed3798ebd468cda3 (diff)
downloadupstream-1fa04b5d9fb1cba56a8597d6da9e1d52b8030f6b.tar.gz
upstream-1fa04b5d9fb1cba56a8597d6da9e1d52b8030f6b.tar.bz2
upstream-1fa04b5d9fb1cba56a8597d6da9e1d52b8030f6b.zip
mvebu: split base-files across subtargets
For the mvebu target in particular, there is a lot of files in base-files that are only relevant for one subtarget. Improve overview and reduce size per subtarget by moving/splitting base-files depending on the subtarget they belong to. While at it, consolidate 01_leds by using the model part of the board name as variable. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Acked-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Diffstat (limited to 'target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan')
-rw-r--r--target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan23
1 files changed, 0 insertions, 23 deletions
diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan b/target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan
deleted file mode 100644
index ec25aedad6..0000000000
--- a/target/linux/mvebu/base-files/etc/uci-defaults/04_mambafan
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2017 LEDE-Project.org
-#
-
-. /lib/functions.sh
-
-board=$(board_name)
-
-case "$board" in
-linksys,mamba)
- # Set fan script execution in crontab
- grep -s -q fan_ctrl.sh /etc/crontabs/root && exit 0
-
- echo "# mamba fan script runs every 5 minutes" >> /etc/crontabs/root
- echo "*/5 * * * * /sbin/fan_ctrl.sh" >> /etc/crontabs/root
-
- # Execute one time after initial flash (instead of waiting 5 min for cron)
- /sbin/fan_ctrl.sh
- ;;
-esac
-
-exit 0