Update readme
authorCameron Ball <c.ball1729@gmail.com>
Thu, 26 Mar 2015 07:46:23 +0000 (07:46 +0000)
committerCameron Ball <c.ball1729@gmail.com>
Thu, 26 Mar 2015 07:46:23 +0000 (07:46 +0000)
README.md

index a1e3718..c2cacb9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -14,12 +14,14 @@ 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
+- An fstab entry for /dev/sda1 pointing to /mnt/usb-update
 - 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
+The usb-update 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 to the cwd.
 
-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). I would suggest simply adding the following to /etc/init.d/rc.local:
+In addition, it will update the software on the Pi. Unlike when config.ini and video.ini are copied, the software will always be extracted to /home/pi/hdmi-switcher (this is to stop me accidentally overwriting changes when I modify source code in /home/pi/hdmi-switcher-src)
+
+If you want to run the script on boot, you should use start.sh. start.sh runs the usb-update script, and then starts playing video.mp4 on a loop. It uses omxplayer (make sure whatever version you use has the --loop option). I would suggest simply adding the following to /etc/init.d/rc.local:
 
 ```
 /home/pi/hdmi-switcher/start.sh