View Single Post
Old 04-24-2016, 12:59 PM   #16
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by abarthch View Post
@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 -/mnt/us/RUNME.done && exit

# reset "needs repair" boot counter:
echo > /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...

Last edited by geekmaster; 04-24-2016 at 01:03 PM.
geekmaster is offline   Reply With Quote