We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e898b5a commit 2fa3a48Copy full SHA for 2fa3a48
spruce/scripts/platform/device_functions/SmartProS.sh
@@ -495,5 +495,6 @@ set_backlight() {
495
echo "$val_255" > /sys/class/backlight/backlight0/brightness
496
497
# update device system json
498
+ tmp=$(mktemp)
499
jq ".backlight = $val" "$SYSTEM_JSON" > "$tmp" && mv "$tmp" "$SYSTEM_JSON"
500
}
0 commit comments