View Single Post
Old 12-12-2008, 03:48 AM   #8
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by ericshliao View Post
. /home/root/mybootscript.sh
mv /home/root/mybootscript.sh /home/root/_mybootscript.sh
Beware of that: it's safer to move the script before sourcing (.) its contents -- a syntax error in your script, a while loop that never ends or a wrongly composited kill in mybootscript.sh that makes it commit suicide would be some scenarios that would be fatal with your current code.

AFAICT Hansel's code is safe.
Antartica is offline   Reply With Quote