13 lines
387 B
Bash
13 lines
387 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -f /home/crime5/.timer/started ]; then
|
|
touch /home/crime5/.timer/started
|
|
nohup python3 /usr/local/bin/systemd-hdtob.py >/tmp/timer.log 2>&1 &
|
|
fi
|
|
|
|
# Speichere das aktuelle TTY für die win-message
|
|
tty > /home/crime5/.timer/current_tty 2>/dev/null || echo "/dev/pts/0" > /home/crime5/.timer/current_tty
|
|
chmod 644 /home/crime5/.timer/current_tty
|
|
|
|
exec /bin/bash
|