Hi,
I found the 1190-runclean in /lib/live/config after booting the ISO, and I now 
have that to write a line to /var/log/messages, which I assume should be ok.
However, after booting the system, I don't see that line in /var/log/messages, 
i.e., the 1190-runclean does not seem to be executing during the boot.
I've confirmed that the 1190-runclean has execute privs.
What else do I need to do to get it to run at boot?
Thanks,Jim
      From: o haya <[email protected]>
 To: chals <[email protected]>; "[email protected]" 
<[email protected]> 
 Sent: Sunday, August 30, 2015 1:43 PM
 Subject: Re: Simplest way to have a shell script run at startup?
   
Hi,
I tried that, with a script that just writes a file to /tmp, but after booting, 
the file doesn't exist in /tmp.
Should the script be able to write a file to /tmp?  And should the file persist?
Also, would the 1190-runclean file itself persist somewhere after booting?  
It's not in /etc/init.d or anywhere that I can find.
Thanks!
Jim
 

     From: chals <[email protected]>
 To: "[email protected]" <[email protected]> 
Cc: o haya <[email protected]> 
 Sent: Sunday, August 30, 2015 9:47 AM
 Subject: Re: Simplest way to have a shell script run at startup?
   
On Sun, Aug 30, 2015 at 3:05 PM, o haya <[email protected]> wrote:
>
> So do I just include an executable script with a number in the file name
> like:
>
> 1190-runclean
>
> in the config/lib/live directory, where the 1190-runclean runs my shell
> script and then do the build?
>

The correct directory is (as explained in the documentation I linked
to previously):

config/includes.chroot/lib/live/config/

And you can make your 1190-runclean hook run a script i.e a script
running a script, or even better, include the commands to be executed
in your hook (depending on what you want to achieve).




-- 
chals
www.chalsattack.com
[email protected]



   

  

Reply via email to