op-packages/luci-app-sms-tool/root/sbin/smsled-init.sh
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

22 lines
405 B
Bash
Executable File

#!/bin/sh
# Copyright 2020 Rafał Wabik (IceG) - From eko.one.pl forum
# Licensed to the GNU General Public License v3.0.
sleep 10
CT=$(uci -q get sms_tool.general.checktime)
TX=$(echo $CT | tr -dc '0-9')
TM=$(($TX * 60))
while [ 1 ]; do
LED=$(uci -q get sms_tool.general.lednotify)
if [ $LED == "1" ]; then
sleep $TM
(/sbin/smsled.sh >/dev/null 2>&1 )&
continue
fi
sleep 1
done
exit 0