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