Re: Questions regarding shell/startup scripts

2008-09-10 Thread Sarton O'Brien
On Thursday 11 September 2008 08:48:24 SCarlson wrote:
>  Hey guys --
>
>  Does anyone's resolv.conf get stomped on every time the machine is
> rebooted?  I have been adding my nameservers by hand.. Just wondering if
> there is a good reason for this?

Embedded systems typically have resolv.conf in volatile memory, due to the 
value changing regularly, with /etc/resolv.conf symlinked.

udhcpc will use /var/run/resolv.conf. Unless you script something up to modify 
/var/run/resolv.conf, you may encounter problems when /etc/resolv.conf is not 
symlinked.

I currently only use my own scripts to invoke wpa/udhcpc, nothing special and 
all works fine with no modifications. At this point I don't see any benefit in 
modifying startup scripts unless the changes are also made upstream and won't 
break when someone actually cleans up dns resolving amongst apps and services.

Why static entries are being made in flash and why some apps aren't aware of a 
'typical' scheme is a bit beyond me. It's not hard to manually overwrite 
/var/run/resolv.conf by hand or scripted and you have the added benefit of not 
modifying the base system.

Sarton

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Questions regarding shell/startup scripts

2008-09-10 Thread Charles-Henri Gros
SCarlson wrote:
> 
>  Hey guys --
> 
>  Does anyone's resolv.conf get stomped on every time the machine is
> rebooted?  I have been adding my nameservers by hand.. Just wondering if
> there is a good reason for this?

Look at /etc/network/interfaces; in some cases it overwrites resolv.conf
there (and if it doesn't you can have it do that)

> 
> Also, Where should I go to force BASH as my default shell

Edit /etc/passwd, but I remember trying that and it prevented terminal
from working. I just tried again, and it still doesn't work somehow.

-- 
Charles-Henri


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Questions regarding shell/startup scripts

2008-09-10 Thread Thomas White
SCarlson <[EMAIL PROTECTED]> wrote:

>  Does anyone's resolv.conf get stomped on every time the machine is
> rebooted?  I have been adding my nameservers by hand.. Just wondering
> if there is a good reason for this?

I don't know about why it happens, but you can have the nameservers
added automatically by adding a couple of lines
to /etc/network/interfaces on your Neo.  Check the section "Configure
Default Neo DNS" in http://wiki.openmoko.org/wiki/Usb_networking.

> Also, Where should I go to force BASH as my default shell, and/or how
> do i get an ASH init script that loads everytime I open a terminal.
> (If I could do this, I'd just automate the resolv.conf stuffer.)

Take care if you change your default shell to Bash.  I tried this (by
editing /etc/passwd manually - of course the "right" way would be to use
chsh or usermod, but neither exists in OM 2008.8 as far as I can see),
and while it worked, it caused some problems when using SCP to transfer
files to and from the Neo.  Digging on the web suggested the problem
was due to Dropbear sshd not getting along with Bash.  I can describe
more details of the problem if anyone's interested...

Tom

-- 

Thomas White
- Downing College
- Electron Microscopy Group (PhD Student),
   Department of Materials Science and Metallurgy
University of Cambridge

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Questions regarding shell/startup scripts

2008-09-10 Thread Fox Mulder
Maybe you should first write which distro you use if you want usefull
answers. ;)

SCarlson wrote:
> 
>  Hey guys --
> 
>  Does anyone's resolv.conf get stomped on every time the machine is
> rebooted?  I have been adding my nameservers by hand.. Just wondering if
> there is a good reason for this?
> 
> Also, Where should I go to force BASH as my default shell, and/or how do i
> get an ASH init script that loads everytime I open a terminal. (If I could
> do this, I'd just automate the resolv.conf stuffer.)
> 
> Thanks!
> 
> Scott

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Questions regarding shell/startup scripts

2008-09-10 Thread SCarlson


 Hey guys --

 Does anyone's resolv.conf get stomped on every time the machine is
rebooted?  I have been adding my nameservers by hand.. Just wondering if
there is a good reason for this?

Also, Where should I go to force BASH as my default shell, and/or how do i
get an ASH init script that loads everytime I open a terminal. (If I could
do this, I'd just automate the resolv.conf stuffer.)

Thanks!

Scott
-- 
View this message in context: 
http://n2.nabble.com/Questions-regarding-shell-startup-scripts-tp1081442p1081442.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community