summaryrefslogtreecommitdiffstats
path: root/boiler-monster/mr3020/etc
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2021-01-12 16:58:31 +0000
committerfishsoupisgood <github@madingley.org>2021-01-12 16:58:31 +0000
commit7c6887eaaf812b63bab6c5e134f80a2ef36aeb31 (patch)
tree4b4b0d371107ae1b8540ca1618cb9aa796b72616 /boiler-monster/mr3020/etc
parentf4b573fe337a436d5e2b20be4be031d77376d609 (diff)
downloadheating-7c6887eaaf812b63bab6c5e134f80a2ef36aeb31.tar.gz
heating-7c6887eaaf812b63bab6c5e134f80a2ef36aeb31.tar.bz2
heating-7c6887eaaf812b63bab6c5e134f80a2ef36aeb31.zip
works
Diffstat (limited to 'boiler-monster/mr3020/etc')
-rwxr-xr-xboiler-monster/mr3020/etc/stm32/startup5
1 files changed, 5 insertions, 0 deletions
diff --git a/boiler-monster/mr3020/etc/stm32/startup b/boiler-monster/mr3020/etc/stm32/startup
index 9422745..ca19e1d 100755
--- a/boiler-monster/mr3020/etc/stm32/startup
+++ b/boiler-monster/mr3020/etc/stm32/startup
@@ -3,7 +3,11 @@
logger -t stm32 "startup"
LOCK=/var/lock/LCK..ttyATH0
+LOCK2=/var/lock/LCK..ttyATH0.stm32
echo $$ > ${LOCK}.tmp
+mv -f ${LOCK}.tmp ${LOCK}
+echo $$ > ${LOCK2}.tmp
+mv -f ${LOCK2}.tmp ${LOCK2}
#killall -9 ser2net
@@ -48,3 +52,4 @@ logger -t stm32 "Booting"
stm32flash -g 0 "${PORT}"
rm -f ${LOCK}
+rm -f ${LOCK2}