OpenWrt – Blame information for rev 4

Subversion Repositories:
Rev:
Rev Author Line No. Line
4 office 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 armada-xp-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