I have this code:
if [ -f "/mnt/usb/test/linuxConfig.json" ] then echo "usb på plats"
What I want is when the file is found ( aka the usb is mounted) to set a variable as true.
I want to write a script that checks if the the usb is mounted and in case is not to try to mount it and if it fails to reboot the pi.
I need the variable to be true or false since I want to use a
sleep command as well.