[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    Re: [uClinux-dev] How to set up a HUSH script to run at boot (mit-out das U-Boot rebuildung)
From:       Steve Strobel <steve.strobel () link-comm ! com>
Date:       2014-02-04 0:09:08
Message-ID: CAGrmWbyKx=cJ011UnpY7P5Hs5=fc3SO=s9fMVrO10XnOyf46gA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Fri, Jan 31, 2014 at 3:33 PM, Eric Fowler <eric.fowler@gmail.com> wrote:

> I have a set of HUSH commands that I wish to have read in every time I
> boot, much like a .bashrc file on grownup Linux.
>

On my uClinux system, /etc/rc gets executed automatically on startup.  I
call a variety of other scripts from there.  When uClinux (with my apps,
all of the libraries, etc) gets built, those other scripts get copied from
vendors/.../my_target/... on the dev machine so they end up in /etc/ on the
target.  Note that anything you call from there either needs to exit
quickly or be run in the background (such as with a trailing '&') or you
won't get a root:~> prompt.

Steve


-- 
Steve Strobel
Link Communications, Inc.
1035 Cerise Rd
Billings, MT 59101-7378
(406) 245-5002 ext 102
(406) 245-4889 (fax)
WWW: http://www.link-comm.com
MailTo:steve.strobel@link-comm.com

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 31, 2014 \
at 3:33 PM, Eric Fowler <span dir="ltr">&lt;<a href="mailto:eric.fowler@gmail.com" \
target="_blank">eric.fowler@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">I have a set of HUSH commands that I wish to have read in \
every time I<br> boot, much like a .bashrc file on grownup \
Linux.<br></blockquote><div><br></div><div>On my uClinux system, /etc/rc gets \
executed automatically on startup.  I call a variety of other scripts from there.  \
When uClinux (with my apps, all of the libraries, etc) gets built, those other \
scripts get copied from vendors/.../my_target/... on the dev machine so they end up \
in /etc/ on the target.  Note that anything you call from there either needs to exit \
quickly or be run in the background (such as with a trailing &#39;&amp;&#39;) or you \
won&#39;t get a root:~&gt; prompt.</div>

<div><br></div><div>Steve</div><div><br></div></div><div><br></div>-- <br>Steve \
Strobel<br>Link Communications, Inc.<br>1035 Cerise Rd<br>Billings, MT \
59101-7378<br>(406) 245-5002 ext 102<br>(406) 245-4889 (fax)<br>WWW: <a \
href="http://www.link-comm.com" target="_blank">http://www.link-comm.com</a><br>

MailTo:<a href="mailto:steve.strobel@link-comm.com" \
target="_blank">steve.strobel@link-comm.com</a><br> </div></div>



_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic