Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta v6.31.0 #3621

Merged
merged 151 commits into from Jun 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
5e8a44f
META | DietPi-Survey_report: Add v6.30 and v6.31 support
MichaIng May 10, 2020
5bf266e
v6.31
MichaIng May 10, 2020
57ef2a9
v6.31
MichaIng May 10, 2020
7fb8b09
v6.31
MichaIng May 11, 2020
e5fc3bb
v6.31
MichaIng May 11, 2020
9633e71
v6.31
MichaIng May 11, 2020
d3231a2
v6.31
MichaIng May 11, 2020
66039a2
v6.31
MichaIng May 11, 2020
16ec16e
v6.31
MichaIng May 11, 2020
20a9d33
v6.31
MichaIng May 11, 2020
b793f20
v6.31
MichaIng May 11, 2020
6ad6f8a
v6.31
MichaIng May 11, 2020
e5db997
v6.31
MichaIng May 11, 2020
3ce5678
v6.31
MichaIng May 11, 2020
b1f44ac
v6.31
MichaIng May 11, 2020
957a933
v6.31
MichaIng May 11, 2020
a2bfe60
v6.31
MichaIng May 11, 2020
3640909
v6.31
MichaIng May 11, 2020
848784d
v6.31
MichaIng May 11, 2020
1d541ee
v6.31
MichaIng May 11, 2020
338e689
v6.31
MichaIng May 11, 2020
c202885
v6.31
MichaIng May 11, 2020
2eefa96
v6.31
MichaIng May 11, 2020
dc062f0
v6.31
MichaIng May 11, 2020
ea0e202
META | Add CodeFactor to DietPi source section and bash to 3rd party …
MichaIng May 11, 2020
e8a5148
v6.31
MichaIng May 11, 2020
51089c8
v6.31
MichaIng May 11, 2020
d02d7e4
v6.31
MichaIng May 12, 2020
89ae778
v6.31 (#3471)
CedArctic May 13, 2020
8aa7af2
v6.31 (#3531)
MichaIng May 13, 2020
16a1e9f
v6.31
MichaIng May 14, 2020
30db40a
v6.31
MichaIng May 14, 2020
d89c43c
v6.31
MichaIng May 14, 2020
795ac9c
v6.31
MichaIng May 14, 2020
f6f34c0
v6.31
MichaIng May 14, 2020
96b11b0
v6.31 (#3536)
MichaIng May 14, 2020
27ab738
v6.31
MichaIng May 15, 2020
25a2978
v6.31
MichaIng May 15, 2020
0dce3dd
v6.31
MichaIng May 15, 2020
d54eaee
v6.31
MichaIng May 15, 2020
f0f4983
v6.31
MichaIng May 15, 2020
ba45d24
v6.31
MichaIng May 15, 2020
aa033a5
v6.31
MichaIng May 17, 2020
16324ca
v6.31
MichaIng May 17, 2020
510de23
v6.31
MichaIng May 17, 2020
6aa59bb
v6.31
MichaIng May 17, 2020
1c2437f
v6.31
MichaIng May 17, 2020
5996c9d
v6.31 (#3545)
MichaIng May 17, 2020
bff5112
v6.31
MichaIng May 18, 2020
0b4a4d4
v6.31
MichaIng May 18, 2020
95497ce
v6.31
MichaIng May 18, 2020
edcce06
v6.31
MichaIng May 18, 2020
10eabd9
v6.31
MichaIng May 18, 2020
c39e0e0
v6.31
MichaIng May 18, 2020
e9ae410
v6.31
MichaIng May 18, 2020
6d6e3d3
v6.31 (#3546)
MichaIng May 19, 2020
99caec8
v6.31
MichaIng May 20, 2020
b0c23fb
v6.31
MichaIng May 20, 2020
5e8144b
v6.31
MichaIng May 21, 2020
6cd00ba
v6.31
MichaIng May 21, 2020
4ee75d8
v6.31
MichaIng May 24, 2020
16d105e
v6.31
MichaIng May 25, 2020
7a4350f
v6.31
MichaIng May 25, 2020
274434d
v6.31 (#3565)
MichaIng May 26, 2020
6106bd9
v6.31
MichaIng May 27, 2020
525d168
v6.31
MichaIng May 27, 2020
b2be77c
v6.31
MichaIng May 28, 2020
8c07e28
v6.31
MichaIng May 28, 2020
2c95ce9
v6.31
MichaIng May 31, 2020
ae27afc
v6.31
MichaIng May 31, 2020
44d1e5b
v6.31
MichaIng May 31, 2020
e3297f8
v6.31
MichaIng May 31, 2020
b7998cf
v6.31
MichaIng May 31, 2020
6b07d8c
v6.31
MichaIng May 31, 2020
d51514a
v6.31
MichaIng May 31, 2020
caec92e
v6.31
MichaIng May 31, 2020
e6c504d
v6.31
MichaIng May 31, 2020
e16e82d
v6.31
MichaIng May 31, 2020
02896ef
v6.31
MichaIng Jun 1, 2020
d9daf32
v6.31
MichaIng Jun 3, 2020
7c4284b
v6.31
MichaIng Jun 3, 2020
98a43e5
v6.31
MichaIng Jun 3, 2020
2b8ab91
v6.31
MichaIng Jun 3, 2020
46fca0a
v6,31
MichaIng Jun 3, 2020
5f348ce
v6.31
MichaIng Jun 4, 2020
0f556d3
v6.31
MichaIng Jun 4, 2020
b6b15d5
v6.31
MichaIng Jun 5, 2020
92b24a0
v6.31
MichaIng Jun 5, 2020
689e152
v6.31
MichaIng Jun 7, 2020
35fadc4
v6.31
MichaIng Jun 8, 2020
998c564
v6.31
MichaIng Jun 8, 2020
6a0d80e
v6.31
MichaIng Jun 8, 2020
fe170d5
v6.31
MichaIng Jun 8, 2020
f68580a
v6.31
MichaIng Jun 8, 2020
e962936
v6.31
MichaIng Jun 9, 2020
a9d2ea3
v6.31
MichaIng Jun 14, 2020
4efb301
v6.31
MichaIng Jun 14, 2020
40ad8d3
v6.31
MichaIng Jun 14, 2020
4224ad6
v6.31
MichaIng Jun 14, 2020
7b3633e
v6.31
MichaIng Jun 14, 2020
d56c027
v6.31
MichaIng Jun 14, 2020
8c33bba
v6.31
MichaIng Jun 14, 2020
aeb8b5e
v6.31
MichaIng Jun 14, 2020
be14aff
v6.31
MichaIng Jun 16, 2020
60d5296
v6.31
MichaIng Jun 16, 2020
81753f4
v6.31
MichaIng Jun 16, 2020
926cdf0
v6.31
MichaIng Jun 16, 2020
3969369
v6.31
MichaIng Jun 16, 2020
a8626ad
v6.31
MichaIng Jun 16, 2020
590ee87
v6.31
MichaIng Jun 16, 2020
8cc5ae3
v6.31
MichaIng Jun 16, 2020
b64e9d6
v6.31
MichaIng Jun 17, 2020
21e93ba
v6.31
MichaIng Jun 17, 2020
8ab237f
v6.31
MichaIng Jun 17, 2020
8c0279c
v6.31 (#3605)
MichaIng Jun 17, 2020
13f88e7
v6.31
MichaIng Jun 18, 2020
95b8e7e
v6.31
MichaIng Jun 19, 2020
3b7712d
v6.31
MichaIng Jun 19, 2020
f22831b
v6.31
MichaIng Jun 20, 2020
b105a4e
v6.31
MichaIng Jun 20, 2020
a1367a0
v6.31
MichaIng Jun 20, 2020
824917b
v6.31 (#3617)
MichaIng Jun 23, 2020
772936d
v6.31
MichaIng Jun 24, 2020
3f4cc7b
v6.31
MichaIng Jun 24, 2020
4924679
v6.31
MichaIng Jun 24, 2020
4e10fbb
v6.31
MichaIng Jun 24, 2020
66f937a
v6.31
MichaIng Jun 24, 2020
dd45e90
v6.31
MichaIng Jun 24, 2020
a1033d3
v6.31
MichaIng Jun 25, 2020
1a3dcac
v6.31
MichaIng Jun 25, 2020
adf1409
v6.31
MichaIng Jun 25, 2020
dfbc502
v6.31
MichaIng Jun 25, 2020
3d3dcfd
v6.31
MichaIng Jun 25, 2020
49f960a
v6.31
MichaIng Jun 25, 2020
bc21cfb
v6.31
MichaIng Jun 25, 2020
59b2ccf
v6.31
MichaIng Jun 25, 2020
938e537
v6.31
MichaIng Jun 25, 2020
22d929b
v6.31
MichaIng Jun 25, 2020
ca8ec0e
v6.31 (#3620)
MichaIng Jun 25, 2020
2039bcf
v6.31
MichaIng Jun 26, 2020
5aa2cac
v6.31
MichaIng Jun 26, 2020
62bbaad
v6.31
MichaIng Jun 27, 2020
f96ad09
v6.31
MichaIng Jun 27, 2020
c8d20a1
v6.31
MichaIng Jun 27, 2020
e09fc03
v6.31
MichaIng Jun 28, 2020
c4a1dc3
v6.31
MichaIng Jun 28, 2020
a688920
v6.31
MichaIng Jun 28, 2020
7f5c40c
v6.31
MichaIng Jun 28, 2020
d0b33bc
v6.31
MichaIng Jun 28, 2020
01dafdd
v6.31
MichaIng Jun 28, 2020
e1c88c3
v6.31
MichaIng Jun 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions .conf/dps_2/config.xml
@@ -0,0 +1,27 @@
<config>
<!-- Configuration: Do not create a config backup on each change -->
<config-rotate v='false'/>

<!-- HTTP Server: Allow remote access -->
<allow v='0/0'/>

<!-- Logging: Minimal logs to "journalctl -u fahclient" only -->
<log v='/dev/null'/>
<log-rotate v='false'/>
<log-time v='false'/>
<verbosity v='0'/>

<!-- Slot Control: Do not start folding right after install -->
<paused v='true'/>

<!-- User Information: Fold as user "DietPi" for team "DietPi" -->
<passkey v='06c869246e88c00cb05cc4d1758a97f9'/>
<team v='234437'/>
<user v='DietPi'/>

<!-- Web Server: Allow remote web UI access -->
<web-allow v='0/0'/>

<!-- Folding Slots: Enable GPU slots if supported -->
<gpu v='true'/>
</config>
13 changes: 10 additions & 3 deletions .conf/dps_93/apache.pihole.conf
@@ -1,8 +1,15 @@
# If the URL starts with /admin, it is the Web interface
# Based on: https://github.com/pi-hole/pi-hole/blob/master/advanced/lighttpd.conf.debian

# Admin panel
<Directory ~ /var/www(/html)?/admin>
# Create a response header for debugging using curl -I
# Create response header for Pi-hole debugger
Header set X-Pi-hole "The Pi-hole Web interface is working!"
Header set X-Frame-Options "deny"
Header set X-Frame-Options "DENY"

# Allow access to local fonts
<Files ~ "\.(eot|otf|tt[cf]|woff2?)$">
Header set Access-Control-Allow-Origin "*"
</Files>

# Block . files from being served, such as .git, .github, .gitignore
<Files ~ "^\.">
Expand Down
12 changes: 5 additions & 7 deletions .conf/dps_93/lighttpd.pihole.conf
@@ -1,15 +1,15 @@
# Based on: https://github.com/pi-hole/pi-hole/blob/master/advanced/lighttpd.conf.debian

# If the URL starts with /admin, it is the Web interface
# Admin panel
$HTTP["url"] =~ "^(/html)?/admin/" {
# Create a response header for debugging using curl -I
# Create response header for Pi-hole debugger
setenv.add-response-header = (
"X-Pi-hole" => "The Pi-hole Web interface is working!",
"X-Frame-Options" => "DENY"
)

$HTTP["url"] =~ "\.ttf$" {
# Allow Block Page access to local fonts
# Allow admin panel access to local fonts
$HTTP["url"] =~ "\.(eot|otf|tt[cf]|woff2?)$" {
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
}
}
Expand All @@ -19,11 +19,9 @@ $HTTP["url"] =~ "^(/html)?/admin/\." {
url.access-deny = ("")
}

# If it's a request to Pi-hole blocking page...
# Block public access to blocking page
$HTTP["url"] =~ "^(/html)?/pihole/" {
# ... and the request isn't local
$HTTP["remoteip"] !~ "^1(27|92\.168|0|72\.(1[6-9]|2[0-9]|3[0-1]))\." {
# block!
url.access-deny = ("")
}
}
Expand Down
15 changes: 13 additions & 2 deletions .conf/dps_93/nginx.pihole.conf
@@ -1,16 +1,26 @@
# Based on: https://github.com/pi-hole/pi-hole/blob/master/advanced/lighttpd.conf.debian

# Admin panel
location ~ ^(?:/html|)/admin(?:$|/) {
# Block public access to admin page, if enabled
# - To enable: cd /etc/nginx/sites-dietpi; mv dietpi-pihole-block_public_admin.off dietpi-pihole-block_public_admin.on
# - To disable: cd /etc/nginx/sites-dietpi; mv dietpi-pihole-block_public_admin.on dietpi-pihole-block_public_admin.off
include sites-dietpi/dietpi-pihole-block_public_admin.*on;

# Block . files from being served, such as .git, .github, .gitignore
location ~ ^(?:/html|)/admin/\. {
deny all;
}
# Create a response header for debugging using curl -I

# Create response header for Pi-hole debugger
add_header X-Pi-hole "The Pi-hole Web interface is working!";
add_header X-Frame-Options "DENY";

# Allow access to local fonts
location ~ \.(?:eot|otf|tt[cf]|woff2?)$ {
add_header Access-Control-Allow-Origin "*";
}

# Standard PHP handler block
try_files $uri $uri/ =404;
location ~ ^(?:/html|)/admin/.+\.php(?:$|/) {
Expand All @@ -21,12 +31,13 @@ location ~ ^(?:/html|)/admin(?:$|/) {

# Blocking page
location ~ ^(?:/html|)/pihole(?:$|/) {
# Block public access to blocking page by default
# Block public access to blocking page
allow 127.0.0.0/8;
allow 192.168.0.0/16;
allow 10.0.0.0/8;
allow 172.16.0.0/12;
deny all;

# Standard PHP handler block
try_files $uri $uri/ =404;
location ~ ^(?:/html|)/pihole/.+\.php(?:$|/) {
Expand Down
2 changes: 1 addition & 1 deletion .conf/dps_96/conf
Expand Up @@ -29,7 +29,7 @@
comment = DietPi Share
path = /mnt/dietpi_userdata
browseable = yes
create mask = 0775
create mask = 0664
directory mask = 0775
valid users = dietpi
writeable = yes
Expand Down
100 changes: 44 additions & 56 deletions .meta/dietpi-fan_control
Expand Up @@ -33,7 +33,7 @@ dietpi-fan_control 1 => Non-interactively apply settings from $FP_SETTINGS.

# Import DietPi-Globals ---------------------------------------------------------------
. /boot/dietpi/func/dietpi-globals
export G_PROGRAM_NAME='DietPi-Fan_control'
G_PROGRAM_NAME='DietPi-Fan_control'
G_CHECK_ROOT_USER
G_INIT
# Import DietPi-Globals ---------------------------------------------------------------
Expand All @@ -60,15 +60,15 @@ dietpi-fan_control 1 => Non-interactively apply settings from $FP_SETTINGS.

# Grab valid input
INPUT=0
if [[ $@ ]]; then
if [[ $* ]]; then

if disable_error=1 G_CHECK_VALIDINT "$@"; then
if disable_error=1 G_CHECK_VALIDINT "$*"; then

INPUT=$@
INPUT=$*

else

G_DIETPI-NOTIFY 1 "Invalid input argument ($@) found. Aborting...\n$AVAIABLE_COMMANDS"
G_DIETPI-NOTIFY 1 "Invalid input argument ($*) found. Aborting...\n$AVAIABLE_COMMANDS"
exit 1

fi
Expand All @@ -81,38 +81,37 @@ dietpi-fan_control 1 => Non-interactively apply settings from $FP_SETTINGS.
# Read currently applied fan control values
Read_Control_Files(){

# - Read current fan control toggle
# Read current fan control toggle
TEMP_CONTROLLED_CURRENT=$(<$FP_TEMP_CONTROLLED)

# - Read current trip point temperatures, assuming values of CPU0 for all CPUs
local fp_target=''
local i=0
TRIP_TEMPS_CURRENT=''
# Read current trip point temperatures, assuming values of CPU0 for all CPUs
local fp_target i=0
TRIP_TEMPS_CURRENT=
for fp_target in /sys/devices/virtual/thermal/thermal_zone0/trip_point_*_temp
do

# - Convert "XY000" to XY°C
# Convert "XY000" to XY°C
TRIP_TEMPS_CURRENT+=" $(( $(</sys/devices/virtual/thermal/thermal_zone0/trip_point_${i}_temp) / 1000 ))"
((i++))

done
# - Remove leading white space
# Remove leading white space
TRIP_TEMPS_CURRENT=${TRIP_TEMPS_CURRENT# }

# - Read current trip point fan speeds
TRIP_SPEEDS_CURRENT=''
# Read current trip point fan speeds
TRIP_SPEEDS_CURRENT=
for i in $(<$FP_TRIP_SPEEDS)
do

# - Convert 0-255 to 0-100%
# Convert 0-255 to 0-100%
TRIP_SPEEDS_CURRENT+=" $(( $i * 100 / 255 ))"

done
# - Remove leading white space
# Remove leading white space
TRIP_SPEEDS_CURRENT=${TRIP_SPEEDS_CURRENT# }

# - Read current static fan speed
# - Convert 0-255 to 0-100%
# Read current static fan speed
# - Convert 0-255 to 0-100%
STATIC_SPEED_CURRENT=$(( $(<$FP_STATIC_SPEED) * 100 / 255 ))

}
Expand All @@ -127,17 +126,17 @@ dietpi-fan_control 1 => Non-interactively apply settings from $FP_SETTINGS.
# Verify valid settings, before applying
Verify_Settings(){

# - $TEMP_CONTROLLED is expected to be either 0 or 1.
if ! [[ $TEMP_CONTROLLED == 0 || $TEMP_CONTROLLED == 1 ]]; then
# $TEMP_CONTROLLED is expected to be either 0 or 1.
if [[ $TEMP_CONTROLLED != [01] ]]; then

G_DIETPI-NOTIFY 1 "Invalid setting: \$TEMP_CONTROLLED=$TEMP_CONTROLLED"
return 1

elif (( $TEMP_CONTROLLED )); then

# - $TRIP_SPEEDS and $TRIP_TEMPS are expected to follow scheme: [0-9]+[[:blank:]][0-9]+...
# - $TRIP_TEMPS need to match than $TRIP_POINT_COUNT: Amount of actual CPU0 thermal zone control files
# - $TRIP_SPEEDS values need to be exactly one more: Min speed + one each temp trip
# $TRIP_SPEEDS and $TRIP_TEMPS are expected to follow scheme: [0-9]+[[:blank:]][0-9]+...
# $TRIP_TEMPS need to match than $TRIP_POINT_COUNT: Amount of actual CPU0 thermal zone control files
# $TRIP_SPEEDS values need to be exactly one more: Min speed + one each temp trip
if ! [[ $TRIP_TEMPS =~ ^[0-9[:blank:]]+$ && $TRIP_SPEEDS =~ ^[0-9[:blank:]]+$ ]] ||
! (( $(wc -w <<< "$TRIP_TEMPS") == $TRIP_POINT_COUNT && $(wc -w <<< "$TRIP_SPEEDS") == $TRIP_POINT_COUNT + 1 )); then

Expand All @@ -146,10 +145,10 @@ dietpi-fan_control 1 => Non-interactively apply settings from $FP_SETTINGS.

fi

elif (( ! $TEMP_CONTROLLED )); then
else

# - $STATIC_SPEED is expected to be an integer.
if ! disable_error=1 G_CHECK_VALIDINT $STATIC_SPEED; then
# $STATIC_SPEED is expected to be an integer.
if ! disable_error=1 G_CHECK_VALIDINT "$STATIC_SPEED"; then

G_DIETPI-NOTIFY 1 "Invalid setting: \$STATIC_SPEED=$STATIC_SPEED"
return 1
Expand All @@ -166,12 +165,12 @@ dietpi-fan_control 1 => Non-interactively apply settings from $FP_SETTINGS.
# Write settings to file
Write_Settings(){

# - Write fan control toggle to settings file
# Write fan control toggle to settings file
echo "TEMP_CONTROLLED=$TEMP_CONTROLLED" > $FP_SETTINGS

if (( $TEMP_CONTROLLED )); then

# - Write trip points and attached temperatures to settings file
# Write trip points and attached temperatures to settings file
cat << _EOF_ >> $FP_SETTINGS
TRIP_TEMPS='$TRIP_TEMPS'
TRIP_SPEEDS='$TRIP_SPEEDS'
Expand Down Expand Up @@ -200,10 +199,8 @@ _EOF_
local i=0

# Apply trip point temps
local j=0
local temp=0
local fp_target=''
for (( i=0; i<$G_HW_CPU_CORES; i++ ))
local j=0 temp=0 fp_target
for ((i=0; i<$G_HW_CPU_CORES; i++))
do

j=0
Expand All @@ -223,7 +220,7 @@ _EOF_
done

# Apply trip point fan speeds
local trip_speeds_target=
local trip_speeds_target
for i in $TRIP_SPEEDS
do

Expand All @@ -250,8 +247,7 @@ _EOF_
#-----------------------------------------------------------------------------------
Reset_Menu(){

G_WHIP_YESNO 'Reset fan control settings\n\nYour fan control settings file will be removed and current selections purged. This will take effect after next reboot.\n\nDo you want to continue?'
if (( ! $? )); then
if G_WHIP_YESNO 'Reset fan control settings\n\nYour fan control settings file will be removed and current selections purged. This will take effect after next reboot.\n\nDo you want to continue?'; then

[[ -f $FP_SETTINGS ]] && G_EXEC_DESC="Removing $FP_SETTINGS" G_EXEC rm $FP_SETTINGS
G_EXEC_DESC='Resetting current selections' G_EXEC unset TEMP_CONTROLLED TRIP_TEMPS TRIP_SPEEDS STATIC_SPEED
Expand Down Expand Up @@ -299,18 +295,18 @@ EG: To run the fan at 50%, enter\n \"60\"" && STATIC_SPEED=$G_WHIP_RETURNED_

Main_Menu(){

local i=''
local i

# Read currently applied fan controls, to generate status message
Read_Control_Files
local whip_message=''
local whip_message

if (( $TEMP_CONTROLLED_CURRENT )); then

# - Current control mode
# Current control mode
whip_message+='Mode: Temperature controlled'

# - Current trip point temps
# Current trip point temps
whip_message+='\nTemp points: '
for i in $TRIP_TEMPS_CURRENT
do
Expand All @@ -319,7 +315,7 @@ EG: To run the fan at 50%, enter\n \"60\"" && STATIC_SPEED=$G_WHIP_RETURNED_

done

# - Current trip point speeds
# Current trip point speeds
whip_message+='\nFan speeds:'
for i in $TRIP_SPEEDS_CURRENT
do
Expand All @@ -330,15 +326,15 @@ EG: To run the fan at 50%, enter\n \"60\"" && STATIC_SPEED=$G_WHIP_RETURNED_

else

# - Current control mode
# Current control mode
whip_message+='Mode: Static fan speed'

# - Static fan speed
# Static fan speed
whip_message+="\nFan speed: ${STATIC_SPEED_CURRENT}%"

fi

# - Control mode setting
# Control mode setting
TEMP_CONTROLLED=${TEMP_CONTROLLED:-$TEMP_CONTROLLED_CURRENT}
local mode_text='Static fan speed'
(( $TEMP_CONTROLLED )) && mode_text='Temperature controlled'
Expand All @@ -351,9 +347,9 @@ EG: To run the fan at 50%, enter\n \"60\"" && STATIC_SPEED=$G_WHIP_RETURNED_

if (( $TEMP_CONTROLLED )); then

# - Trip point temperature settings
# Trip point temperature settings
TRIP_TEMPS=${TRIP_TEMPS:-$TRIP_TEMPS_CURRENT}
local trip_temps_text=''
local trip_temps_text
for i in $TRIP_TEMPS
do

Expand All @@ -362,9 +358,9 @@ EG: To run the fan at 50%, enter\n \"60\"" && STATIC_SPEED=$G_WHIP_RETURNED_
done
G_WHIP_MENU_ARRAY+=( 'Temp points' "Selected: $trip_temps_text" )

# - Trip point speed settings
# Trip point speed settings
TRIP_SPEEDS=${TRIP_SPEEDS:-$TRIP_SPEEDS_CURRENT}
local trip_speeds_text=''
local trip_speeds_text
for i in $TRIP_SPEEDS
do

Expand Down Expand Up @@ -392,15 +388,7 @@ EG: To run the fan at 50%, enter\n \"60\"" && STATIC_SPEED=$G_WHIP_RETURNED_

elif [[ $G_WHIP_RETURNED_VALUE == 'Mode' ]]; then

if (( $TEMP_CONTROLLED )); then

TEMP_CONTROLLED=0

else

TEMP_CONTROLLED=1

fi
(( $TEMP_CONTROLLED )) && TEMP_CONTROLLED=0 || TEMP_CONTROLLED=1

elif [[ $G_WHIP_RETURNED_VALUE == 'Temp points' ]]; then

Expand Down