mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 20:08:05 +08:00
23 lines
437 B
Bash
Executable File
23 lines
437 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright 2023-2026 Rafał Wabik (IceG) - From eko.one.pl forum
|
|
# Licensed to the GNU General Public License v3.0.
|
|
#
|
|
|
|
sleep 2
|
|
CT=$(uci -q get sms_tool_js.@sms_tool_js[0].checktime)
|
|
TX=$(echo $CT | tr -dc '0-9')
|
|
TM=$(($TX * 60))
|
|
|
|
while [ 1 ]; do
|
|
LED=$(uci -q get sms_tool_js.@sms_tool_js[0].lednotify)
|
|
if [ $LED == "1" ]; then
|
|
sleep $TM
|
|
/sbin/smstool_led.sh >/dev/null 2>&1 &
|
|
continue
|
|
fi
|
|
sleep 1
|
|
done
|
|
|
|
exit 0
|