Re: [Mvpmc-devel] udhcpc config issue, missing files
Status: Alpha
Brought to you by:
gettler
From: Stephen H. <li...@sp...> - 2004-08-26 03:51:41
|
On Wed, Aug 25, 2004 at 11:26:04PM -0400, Stephen Harris wrote: > replace > SERVER=$serverid > with > SERVER=${siaddr:-$serverid} Actually, I had a horrible thought... this might fail is siaddr is set to 0.0.0.0 for some reason; something I can't currently test. Maybe this would be a better default.script: #!/bin/sh SERVER=$serverid if [ "z$siaddr" != "z" -a "z$siaddr" != "z0.0.0.0" ] then SERVER=$siaddr fi cat <<EOF > /etc/udhcpc.config DONGLE=$boot_file SERVER=$SERVER EOF Better safe than sorry, I guess! -- rgds Stephen |