radio24/TorBox

Could you implement a TorStatus-Info service [by plymouth output]??

Closed this issue · 0 comments

Needet deb packages are plymouth and vnstat

Creating a endless loop with somethink like this as systemd.service:

torstatus-plymouth.service
after=tty1
exec=/usr/bin/torstatus-plymouth


TorStatusService-Code on /usr/bin/torstatus-plymouth should have somethink insert like this,


output = Tor Gateway Interface GatewayInterfaceName Connection State: $(curl $testurl --proxy socks5:$gatewayip:port &> /dev/null && curl $testurl2 --proxy socks5:$gatewayip:port &> /dev/null && echo 'WORKING' || echo 'NOT WORKING')
plymouth --text="$output"

plymouth --text="Tor-Gateway usage:"
plymouth --text="$(vnstat -l -i $INTERFACE)"
plymouth --text="$(vnstat -i $INTERFACE)"

  • also a quick restart of the rpi-gateway with ctrl+alt+del (two times) and restart of a tor service by somethink like ctrl+r

from "man plymouth"
watch-keystroke OPTION
Become sensitive to a keystroke.

       --command=STRING
           Command to send keystroke to via standard input

       --keys=STRING
           Keys to become sensitive to