View Single Post
Old 02-16-2012, 08:55 PM   #17
ixtab
Mayan Goddess
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,294
Karma: 4929663
Join Date: Dec 2011
Device: K3/K4/K5/PW
Hmm... weird. I think you did everything correctly.

Try combining both methods in the file:

Code:
#!/bin/sh
mntroot rw || exit 1
test -e /mnt/us/RUNME.done && echo "Not running, RUNME.done exists" && exit 0
touch /mnt/us/RUNME.done
echo 0 > /var/local/upstart/lab126_gui.restarts
test -f /usr/sbin/shipping_mode || echo "shipping_mode does not exist"
test -f /usr/sbin/shipping_mode && /usr/sbin/shipping_mode
Also, just to be on the safe side: make sure to save the file with Unix line endings (not windows ones).

Last edited by ixtab; 02-16-2012 at 08:59 PM.
ixtab is offline   Reply With Quote
 
Enthusiast