From 113218be76f7aafc516f72192e8c34584649b1dc Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Thu, 26 Mar 2015 07:46:23 +0000 Subject: [PATCH] Update readme --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a1e3718..c2cacb9 100644 --- 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 -- 2.11.0