distribution/packages/jelos/sources/scripts/led_flash

23 lines
402 B
Text
Raw Normal View History

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
. /etc/profile
COLOR=$(get_setting led.color)
BRI=$(get_setting led.brightness)
ledcontrol off
ledcontrol brightness mid
for i in $(seq 1 1 3)
do
sleep 1
ledcontrol ${1}
sleep 1
ledcontrol off
done
ledcontrol ${COLOR}
ledcontrol brightness ${BRI}