I have a Raspberry Pi connected to my TV, which I use to read videos stored on an external hard drive.
I have 2 commands that I run everytime the Raspberry Pi reboots:
- This one, to clear the prompt that shows up on the TV:
sudo sh -c "TERM=linux setterm -foreground black -clear all >/dev/tty0"
- This one, to mount the hard drive:
mount -L hard-drive /media/hard-drive
I would like those commands to be automatically ran everytime the Raspberry Pi reboots, so I've added the following to my crontab:
@reboot sh -c "TERM=linux setterm -foreground black -clear all >/dev/tty0" @reboot mount -L hard-drive /media/hard-drive
However, it doesn't seem to do the trick, because after a reboot, the prompt is still there on the TV, and the drive is not mounted.
What have I done wrong?