tools/setup.slackware

Thu, 12 Oct 2023 14:19:46 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 12 Oct 2023 14:19:46 +0200
changeset 849
16079aef4c4c
parent 744
b8ccc85675a0
permissions
-rw-r--r--

Version 0.3.44. Moved iSpindel Plato calculation from the php script to bmsd. This uses calibration data in the mon_ispindels table. Setup of this data will be done by the bmsapp applications. Default settings are stored in MySQL. From now on you don't need to store calibration data in the iSpindel.

#!/bin/sh
#BLURB="Enable/disable the Brewery Management System at boot"
#
# System setup script for Slackware
#
#
T_PX=$1
TMP=/var/log/setup/tmp
if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then
  dialog --title "ENABLE BMS DAEMON AT BOOT?" --yesno \
 "BMS is a Brewery Management System running as a central controller \
  in a micro or home brewery. It can control remote devices used to \
  control fermentation, and log measured values." 10 70
  if [ $? = 0 ]; then
    mkdir -p /etc/rc.d/rc0.d /etc/rc.d/rc1.d /etc/rc.d/rc3.d /etc/rc.d/rc4.d /etc/rc.d/rc6
    ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc0.d/K15bmsd
    ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc1.d/K15bmsd
    ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc3.d/S85bmsd
    ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc4.d/S85bmsd
    ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc6.d/K15bmsd
  else
    rm -f /etc/rc.d/rc{0,1,6}.d/K15bmsd /etc/rc.d/rc{3,4}.d/S85bmsd
  fi
fi

mercurial