Quick and easy update scripts. Update readme.
[hdmi-switcher.git] / README.md
index 1f58d3c..65ddc53 100644 (file)
--- a/README.md
+++ b/README.md
@@ -10,3 +10,13 @@ The pin numbers can be confusing. If you hold the Pi such that the GPIO header i
 Pin 7 needs to be shorted to pin 9 for the magic to happen.
 
 Run ./hdmi-switcher as root, or using sudo.
+
+Script Automation
+=================
+The scripts assume the following:
+- An fstab entry for /dev/sda1 pointing to /mnt/usb-config
+- Binary and scripts live in /home/pi/hdmi-switcher
+
+The usb-config script will naively look to see if /dev/sda1 exists. If it does, it mounts it and then copies over any files on the drive with names config.ini, video.mp4
+
+If you want to run the script on boot, you should use start.sh. start.sh runs the usb-config scripts, and then starts playing video.mp4 on a loop. It uses omxplayer (make sure whatever version you use has the --loop option).