Package: initscripts
Severity: wishlist
Version: 2.93-3

After upgrading and rebooting a virtual machine that has only a virtual serial console, I get this message:

/etc/init.d/brightness: 36: /etc/init.d/brightness: cannot create /sys/class/backlight/acpi_video0/brightness: Directory nonexistent

It's not critical, but I'm wondering if desktop features could be separated from this package. Or if there was a debconf knob to turn them all on and off easily?

Also, the error message could be avoided with some more checking:

if [ -d /sys/class/backlight/acpi_video0 ]; then
        readonly SYS_CONTROL=/sys/class/backlight/acpi_video0/brightness
        readonly SYS_MAXIMUM=/sys/class/backlight/acpi_video0/max_brightness
else
        readonly SYS_CONTROL=/dev/null
        readonly SYS_MAXIMUM=/dev/null
fi

Best Regards,

--
        Aleksi Suhonen

Reply via email to