cleanup scripts

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2021-05-11 23:20:14 +02:00
parent 961e7dbf24
commit f9d5f09520
3 changed files with 14 additions and 4 deletions

View File

@ -85,12 +85,18 @@ if [ ${#} -lt 1 -o ${#} -gt 2 ]; then
usage usage
fi fi
case ${1} in case "${1}" in
up) up)
if [ ${#} -ne 1 ]; then
usage
fi
increase_brightness increase_brightness
;; ;;
down) down)
if [ ${#} -ne 1 ]; then
usage
fi
decrease_brightness decrease_brightness
;; ;;

View File

@ -21,8 +21,6 @@ BAT_PRESENT_FILE=/sys/class/power_supply/axp20x-battery/present
BAT_PERCENT_FILE=/sys/class/power_supply/axp20x-battery/capacity BAT_PERCENT_FILE=/sys/class/power_supply/axp20x-battery/capacity
BAT_PERCENT_RESCALED_FILE=/tmp/current_battery_percentage BAT_PERCENT_RESCALED_FILE=/tmp/current_battery_percentage
LOW_BAT_ICON=/sys/class/graphics/fb0/low_battery LOW_BAT_ICON=/sys/class/graphics/fb0/low_battery
SCHEDULE_SHUTDOWN_CMD=sched_shutdown
SIGNAL_URS1_TO_EMULATORS_CMD=signal_usr1_to_emulators
# Variables declaration # Variables declaration
low_bat_status=0 low_bat_status=0

View File

@ -93,12 +93,18 @@ if [ ${#} -lt 1 -o ${#} -gt 2 ]; then
usage usage
fi fi
case ${1} in case "${1}" in
up) up)
if [ ${#} -ne 1 ]; then
usage
fi
increase_volume increase_volume
;; ;;
down) down)
if [ ${#} -ne 1 ]; then
usage
fi
decrease_volume decrease_volume
;; ;;