~mmach/netext73/sysvinit

« back to all changes in this revision

Viewing changes to debian/src/initscripts/etc/init.d/brightness

  • Committer: mmach
  • Date: 2023-11-26 16:47:13 UTC
  • Revision ID: netbit73@gmail.com-20231126164713-wzy9kmqvr8q6ydml
308

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        local label=$1 knob=$2 max=$3 file=$SAVEFILE_PREFIX${1:+.$1}
68
68
        test -e "$knob" || return 0
69
69
 
 
70
        # If the backlight is off, don't save to avoid blank display after
 
71
        # reboot. See Devuan #617.
 
72
        test "$(cat $knob)" -eq 0 && return 0
 
73
 
70
74
        test x"$VERBOSE" = x"no" || \
71
75
            log_action_begin_msg Saving $label brightness level
72
76
        cat "$knob" >"$file"