[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 <chals@chalsattack.com>
To: "debian-live@lists.debian.org" <debian-live@lists.debian.org>
Cc: o haya <ohaya@yahoo.com>
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 <ohaya@yahoo.com> 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
chals@chalsattack.com




Reply to: