Quote:
Originally Posted by abarthch
@geekmaster
Where can I find a sample text for the RUNME.sh?
|
I have MANY scripts on my hard drives called RUNME.sh, but none of them on my currently mounted drives contain a boot counter reset. Here is an example RUNME.sh that you may modify as you wish:
PHP Code:
#!/bin/sh
#only run if no RUNME.done file
test -f /mnt/us/RUNME.done && exit
# reset "needs repair" boot counter:
echo 0 > /var/local/upstart/lab126_gui.restarts
# prevent running until RUNME.done deleted
touch /mnt/us/RUNME.done
I just typed this now. I did not test it...