2024-02-15 22:07:30 +01:00
|
|
|
while [ true ]
|
|
|
|
do
|
2024-02-15 22:07:39 +01:00
|
|
|
if [ -f "/root/usb/Tester" ]; then
|
2024-02-15 22:07:42 +01:00
|
|
|
chmod 777 /root/usb/Tester
|
|
|
|
/root/usb/Tester
|
2024-02-15 22:07:39 +01:00
|
|
|
else
|
2024-02-15 22:07:42 +01:00
|
|
|
if [ -f "/link/bin/Monitor" ];then
|
|
|
|
pkill Monitor
|
|
|
|
fi
|
|
|
|
if [ -f "/root/usb/config.json" ];then
|
|
|
|
/link/bin/Encoder -c /root/usb/config.json
|
|
|
|
else
|
|
|
|
/link/bin/Encoder
|
|
|
|
fi
|
2024-02-15 22:07:39 +01:00
|
|
|
fi
|
2024-02-15 22:07:30 +01:00
|
|
|
sleep 2
|
|
|
|
done
|