Wed, 03 Apr 2024 12:14:45 +0200
One-wire thread is now the first to start. The devices_detect() function now uses the detected one-wire linked list instead of scan the sysfs. Base code for ds2413 added in the state table, needs rework.
#!/bin/bash # # thermferm init script for Slackware. # # Copyright 2022-2024 Michiel Broek, the Netherlands. # Source default settings: if [ -r /etc/default/thermferm ]; then . /etc/default/thermferm fi PIDFILE=/run/thermferm.pid case "$1" in start) echo -n "Starting Fermentation Controller: " if [ -f ${PIDFILE} ]; then echo "already running." else ${THERMFERM_BIN} echo "done." fi ;; stop) echo -n "Stopping Fermentation Controller: " if [ -f ${PIDFILE} ]; then kill $(cat ${PIDFILE}) echo "done." else echo "wasn't running." fi ;; restart) $0 stop sleep 2 $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac