Thu, 12 Oct 2023 14:19:46 +0200
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.
744
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | #!/bin/sh |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | #BLURB="Enable/disable the Brewery Management System at boot" |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | # |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | # System setup script for Slackware |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | # |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | # |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | T_PX=$1 |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | TMP=/var/log/setup/tmp |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | dialog --title "ENABLE BMS DAEMON AT BOOT?" --yesno \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | "BMS is a Brewery Management System running as a central controller \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | in a micro or home brewery. It can control remote devices used to \ |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | control fermentation, and log measured values." 10 70 |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | if [ $? = 0 ]; then |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | 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 |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc0.d/K15bmsd |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc1.d/K15bmsd |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc3.d/S85bmsd |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc4.d/S85bmsd |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | ln -s /etc/rc.d/init.d/bmsd /etc/rc.d/rc6.d/K15bmsd |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | else |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | rm -f /etc/rc.d/rc{0,1,6}.d/K15bmsd /etc/rc.d/rc{3,4}.d/S85bmsd |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | fi |
b8ccc85675a0
Added installation for Slackware and separated the systemd.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
24 | fi |