projects
/
hdmi-switcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
39b9e8d
)
Fix another path
author
Cameron Ball
<c.ball1729@gmail.com>
Tue, 14 Apr 2015 16:33:43 +0000
(
00:33
+0800)
committer
Cameron Ball
<c.ball1729@gmail.com>
Tue, 14 Apr 2015 16:33:43 +0000
(
00:33
+0800)
update.sh
patch
|
blob
|
history
diff --git
a/update.sh
b/update.sh
index
42aee87
..
65887ba
100755
(executable)
--- a/
update.sh
+++ b/
update.sh
@@
-23,7
+23,7
@@
fi
if [[ -e "/mnt/usb-update/update.zip" ]] && [[ -e "/mnt/usb-update/update.sig" ]]; then
current_version=$(/home/pi/hdmi-switcher/hdmi-switcher version)
printf "Updating software... "
if [[ -e "/mnt/usb-update/update.zip" ]] && [[ -e "/mnt/usb-update/update.sig" ]]; then
current_version=$(/home/pi/hdmi-switcher/hdmi-switcher version)
printf "Updating software... "
- openssl dgst -sha256 -verify public.pem -signature /mnt/usb-update/update.sig /mnt/usb-update/update.zip > /dev/null 2>&1
+ openssl dgst -sha256 -verify
/home/pi/hdmi-switcher/
public.pem -signature /mnt/usb-update/update.sig /mnt/usb-update/update.zip > /dev/null 2>&1
if [[ $? = 0 ]]; then
(unzip -o /mnt/usb-update/update.zip -d /home/pi > /dev/null 2>&1 && printf "\tOK\n") || printf "\tExtract failure\n"
chmod +x /home/pi/hdmi-switcher/start.sh
if [[ $? = 0 ]]; then
(unzip -o /mnt/usb-update/update.zip -d /home/pi > /dev/null 2>&1 && printf "\tOK\n") || printf "\tExtract failure\n"
chmod +x /home/pi/hdmi-switcher/start.sh