|
1 #!/bin/sh |
|
2 #BLURB="Enable/disable the Fermentation Controller at boot" |
|
3 # |
|
4 # System setup script for Slackware |
|
5 # |
|
6 # |
|
7 T_PX=$1 |
|
8 TMP=/var/lib/pkgtools/setup/tmp |
|
9 if [ "$COLOR" = "on" -o -r $TMP/SeTcolor ]; then |
|
10 dialog --title "ENABLE thermferm DAEMON AT BOOT?" --yesno \ |
|
11 "Thermferm is a brewery fermentation controller that controls \ |
|
12 fermenters temperatures. This is done by controlling cooling \ |
|
13 or heating. Comminucation to the upper level is done via an \ |
|
14 MQTT broker. For local maintenance there is a web interface." 10 70 |
|
15 if [ $? = 0 ]; then |
|
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 |
|
17 ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc0.d/K14thermferm |
|
18 ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc1.d/K14thermferm |
|
19 ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc3.d/S86thermferm |
|
20 ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc4.d/S86thermferm |
|
21 ln -s /etc/rc.d/init.d/thermferm /etc/rc.d/rc6.d/K14thermferm |
|
22 else |
|
23 rm -f /etc/rc.d/rc{0,1,6}.d/K14thermferm /etc/rc.d/rc{3,4}.d/S86thermferm |
|
24 fi |
|
25 fi |