PLAY controlled by script
This commit is contained in:
parent
b633706e56
commit
41b50d3bf9
@ -18,7 +18,6 @@ if sudo fdisk -l | grep -q "$DEVICE_NAME"; then
|
|||||||
echo "$(date) Running Python script with argument: '$var'" >> $LOGFILE
|
echo "$(date) Running Python script with argument: '$var'" >> $LOGFILE
|
||||||
# Run the Python script and capture both stdout and stderr to the log
|
# Run the Python script and capture both stdout and stderr to the log
|
||||||
/usr/bin/python3 /home/dietpi/floppy-ytube-player/main.py "$var" >> $LOGFILE 2>&1
|
/usr/bin/python3 /home/dietpi/floppy-ytube-player/main.py "$var" >> $LOGFILE 2>&1
|
||||||
/usr/bin/python3 /home/dietpi/floppy-ytube-player/main.py PLAY >> $LOGFILE 2>&1
|
|
||||||
else
|
else
|
||||||
echo "$(date): No floppy disk is present in device $DEVICE_NAME" >> $LOGFILE
|
echo "$(date): No floppy disk is present in device $DEVICE_NAME" >> $LOGFILE
|
||||||
/usr/bin/systemd-mount --umount /mnt/floppy
|
/usr/bin/systemd-mount --umount /mnt/floppy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user