--- /dev/null
+#!/bin/bash
+
+basedir=/sys/class/backlight
+
+# In percent
+min=10
+step=10
+
+dir=$(find ${basedir} -type l)
+
+read max_raw < ${dir}/max_brightness
+read cur_raw < ${dir}/brightness
+
+min_raw=$(echo "scale=0; (${min} * ${max_raw}) / 100" | bc)
+step_raw=$(echo "scale=0; (${step} * ${max_raw}) / 100" | bc)
+
+case $1 in
+ -)
+ new=`expr ${cur_raw} - ${step_raw}`
+ if [ ${new} -le ${min_raw} ]; then
+ new=${min_raw}
+ fi
+ ;;
+ +)
+ new=`expr ${cur_raw} + ${step_raw}`
+ if [ ${new} -ge ${max_raw} ]; then
+ new=${max_raw}
+ fi
+ ;;
+ *)
+ exit 1
+ ;;
+esac
+
+echo ${new} > ${dir}/brightness
install -v -m644 ${SCRDIR}/misc/acpi/events/* /etc/acpi/events
- install -v -m755 ${SCRDIR}/misc/acpi/suspend2ram.sh /etc/acpi
- install -v -m755 ${SCRDIR}/misc/acpi/shutdown.sh /etc/acpi
+ install -v -m755 ${SCRDIR}/misc/acpi/*.sh /etc/acpi
install -v -m740 ${SCRDIR}/bootscripts/acpid /etc/rc.d/init.d
bootscript_add_rcsysinit acpid 65 90