mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.git] / target / linux / mvebu / base-files / etc / uci-defaults / 04_mambafan
1 #!/bin/sh
2 #
3 # Copyright (C) 2017 LEDE-Project.org
4 #
5
6 . /lib/functions.sh
7
8 board=$(board_name)
9
10 case "$board" in
11 linksys,mamba)
12         # Set fan script execution in crontab
13         grep -s -q fan_ctrl.sh /etc/crontabs/root && exit 0
14
15         echo "# mamba fan script runs every 5 minutes" >> /etc/crontabs/root
16         echo "*/5 * * * * /sbin/fan_ctrl.sh" >> /etc/crontabs/root
17
18         # Execute one time after initial flash (instead of waiting 5 min for cron)
19         /sbin/fan_ctrl.sh
20         ;;
21 esac
22
23 exit 0