Re: Starting bash script upon bootup
So where is the .bashrc file located prior to the install so I can edit it
so the script can begin execution when the shell is started upon bootup?
Even if I have that piece of information, I can accomplish my goal.
>> On Wed, Aug 04, 2010 at 01:51:54PM -0500, Tim Legg wrote:
>>> What is a recommended way of executing an interactive bash script
>>> automatically upon boot-up on a live system?
>> What do you mean by "interactive"? Where does this interaction happen?
> It is a script that interacts with the user. This is usually run from the
> command line, but I would like to spare the user of such a step and have
> it start on its own after boot.
> I would have it called from bottom of /home/user/.bashrc, but that file
> doesn't exist until after lh_build is executed.
>>> In the past, I've kept the script in /bin and the user boots from the
>>> and executes the script. I think it would be cool if I could remove a
>>> step and have the script start itself for the user.
>> When / if the script exists, what should happen:
>> * Restart the script
>> * Start a shell
>> * Shutdown the system?
> This is a bash script that I expect to be owned by user. When/if the
> script exits, going back to the shell is fine.
>> Is this a system based on Lenny or Squeeze? (in case of Squeese: is
>> upstart used?)
> This is Lenny (stable)
>> Tzafrir Cohen
>> icq#16849755 jabber:firstname.lastname@example.org
>> +972-50-7952406 mailto:email@example.com
>> http://www.xorcom.com iax:firstname.lastname@example.org/tzafrir
>> To UNSUBSCRIBE, email to email@example.com
>> with a subject of "unsubscribe". Trouble? Contact
>> Archive: 20100804195212.GX9235@xorcom.com">http://lists.debian.org/20100804195212.GX9235@xorcom.com
> To UNSUBSCRIBE, email to firstname.lastname@example.org
> with a subject of "unsubscribe". Trouble? Contact