#!/bin/sh
cd /tmp/os/update014Extract/
if test -e /home/pi/SSD
then
echo update 13 nothing for SSD
touch /home/pi/update014
else
sudo mount -o remount,rw /
echo installing sox and its dependencies
### update014
sudo mount -o remount,rw /boot
sudo cp -v /boot/config.txt /boot/config.txt.orig
sudo cp -v config.txt /boot/config.txt
sudo mount -o remount,ro /boot
sudo cp -v /tmp/os/phason.sh /tmp/os/phason.sh.orig
sudo cp -v phason.sh /tmp/os
sudo cp -v default.conf /etc/mosquitto/conf.d/

touch /home/pi/update014
sudo mount -o remount,ro /
fi
