Kristian Kielhofner wrote:
> On 10/21/08, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
>
>> Revision: 2020
>> http://astlinux.svn.sourceforge.net/astlinux/?rev=2020&view=rev
>> Author: pprindeville
>> Date: 2008-10-21 05:52:09 +0000 (Tue, 21 Oct 2008)
>>
>> Log Message:
>> -----------
>> Remove assumption that all networks are /24 subnetted!
>>
>>
>
> I know... That's really nasty and hidden all over the place. What's
> the best way to do this when we need to - ipcalc or something?
>
Ipcalc is pretty slick (thanks for showing me, Lonnie!).
Have a look at the latest version of the /etc/init.d/nfsd script. Also
noticed we do:
if [ -n "$SOMEVAR" ]; then
for i in "$SOMEVAR"
do
...
done
fi
but all you really need is:
for in in $SOMEVAR; do
...
done
note that there aren't any quotes around $SOMEVAR, and the semi-colon
helps bash know when the argument list is empty.
-Philip
-Philip
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL
PROTECTED]