script to execute after reboot

2017-03-14 Thread Jan.Dreyer
Hi, I have a script with some commands that should be executed on first reboot after installation only. Now I could put a call to it into rc.local and delete it afterwards, but I’m sure I have seen a more elegant solution directly with FAI. Could someone point my nose to the right direction? T

Re: script to execute after reboot

2017-03-14 Thread John G Heim
What I do is to run an fai softupdate via a line in cron upon reboot. @REBOOT root fai --class=POSTINSTALL softupdate Kind of nice to do an FAI softupdate after every reboot -- especially the 1st one after the initial install. Over the years, I've moved more and more stuff into the post instal

Re: script to execute after reboot

2017-03-16 Thread Andreas Heinlein
Am 14.03.2017 um 15:21 schrieb John G Heim: > What I do is to run an fai softupdate via a line in cron upon reboot. > > @REBOOT root fai --class=POSTINSTALL softupdate > > Kind of nice to do an FAI softupdate after every reboot -- especially > the 1st one after the initial install. Over the years,