Skip to content

Commit d66cbf9

Browse files
author
Greg Bowler
authored
Merge pull request #11 from BrightFlair/1908-test
Add Masson config
2 parents ace581d + 1be08d2 commit d66cbf9

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

cron-boot

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ then
3737
sudo reboot
3838
fi
3939

40+
# Individual logbox settings:
41+
if [ "$mac" == "9cb911" ] # 1908 test
42+
then
43+
if [ ! -f /home/logbox/masson-fix-1 ]
44+
then
45+
cd /home/logbox/hat
46+
git fetch && git checkout 1908-masson
47+
cd /home/logbox/os
48+
git fetch && git checkout 1908-masson
49+
touch /home/logbox/masson-fix-1
50+
sudo reboot
51+
fi
52+
fi
53+
4054
# Update all components:
4155
rebootNeeded=false
4256
declare -a component_list=("avr" "hat" "hat-update" "os")
@@ -57,13 +71,22 @@ then
5771
sudo reboot
5872
fi
5973

60-
/usr/bin/logbox-hat-update
74+
sudo /usr/bin/logbox-hat-update
6175

6276
sudo crontab -u logbox "$logbox_home/os/cron.conf"
6377

6478
sudo touch /var/www/logbox/cfg.dat
6579
sudo chown logbox:logbox /var/www/logbox/cfg.dat
6680
sudo chmod a+w /var/www/logbox/cfg.dat
6781

82+
if [ "$mac" == "9cb911" ] # 1908 test
83+
then
84+
if [ ! -f /home/logbox/masson-fix-2 ]
85+
then
86+
touch /home/logbox/masson-fix-2
87+
sudo reboot
88+
fi
89+
fi
90+
6891
python os/data-log.py &
6992
echo $! > /home/logbox/data-log.pid

0 commit comments

Comments
 (0)