From cc34e7b412a418fb96b1e2ac37c38bb29cb6a103 Mon Sep 17 00:00:00 2001 From: codewithpassion Date: Sat, 4 Oct 2014 23:46:19 -0700 Subject: [PATCH] Fixes #304 - checking for emmc copy log and delete if its there --- etc/rc.local | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/rc.local b/etc/rc.local index a85c95cb..4a308aa7 100755 --- a/etc/rc.local +++ b/etc/rc.local @@ -35,4 +35,9 @@ echo "# No persist!" >> /etc/udev/rules.d/70-persistent-net.rules # setup the 'reset' GPIO configuration /opt/openrov/cockpit/linux/reset.sh +# delete the emmc-copy log if present +if [ -f '/var/log/copy-to-emmc.log' ]; then + rm /var/log/copy-to-emmc.log +fi + exit 0