Fri, 28 May 2021 14:25:56 +0200
Added kicad drawings
612
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | #!/bin/sh |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | #BLURB="Enable/disable the Fermentation Controller at boot" |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | # |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | # System setup script for Slackware |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | # |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | # |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | T_PX=$1 |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | TMP=/var/lib/pkgtools/setup/tmp |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | dialog --title "ENABLE thermferm DAEMON AT BOOT?" --yesno \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | "Thermferm is a brewery fermentation controller that controls \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | fermenters temperatures. This is done by controlling cooling \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | or heating. Comminucation to the upper level is done via an \ |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | MQTT broker. For local maintenance there is a web interface." 10 70 |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | if [ $? = 0 ]; then |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | 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 |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc0.d/K14thermferm |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc1.d/K14thermferm |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc3.d/S86thermferm |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc4.d/S86thermferm |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc6.d/K14thermferm |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | else |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | rm -f /etc/rc.d/rc{0,1,6}.d/K14thermferm /etc/rc.d/rc{3,4}.d/S86thermferm |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
24 | fi |
452f79a5ad71
Make sure the hostname doesn't contain the domain name. Added Slackare init and setup scripts.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
25 | fi |