Hey all,

  In my upgrade to Dachstein CD RC5 I encountered some issues with Seawall 
that may indicate an issue with sed/cut - or Seawall (I'm not sure which)

when Seawall starts I get a couple of errors:

sed: Unknown option to 's'
No IP Address assigned to eth0
sed: Unknown option to 's'

or something to that effect - it definitely has to do with sed or cut - now 
I'm not sure if this was present in RC4 - as RC3 was the version I was 
running previously and it was not affected.  Not to worry - I mucked about 
with the firewall script and this should work.  It requires that ifconfig be 
installed though (shouldn't be a problem if you are running dachstein).  
Edit the firewall file in /etc/seawall, find the following:

if [ -x /sbin/ip -o -x /usr/sbin/ip ]; then
  [ -z "$myip" ] && myip=`ip addr show $internet | grep "inet " \
    | sed s/"    "// | cut -d' ' -f 2 | cut -d'/' -f1`
  useip="Yes"
else
  [ -z "$myip" ] && myip="`ifconfig $internet | grep 'inet \
    addr' | sed 's/          inet addr://' | cut -d' ' -f 1`"
  useip=""
fi


with

if [ -x /sbin/ip -o -x /usr/sbin/ip ]; then
#  [ -z "$myip" ] && myip=`ip addr show $internet | grep "inet " | \
     sed s/"    "// | cut -d' ' -f 2 | cut -d'/' -f1`
#  useip="Yes"
#else
  [ -z "$myip" ] && myip="`ifconfig $internet | grep 'addr:' | cut \
-d'addr:' -f2 | cut -d' ' -f1`"
  useip=""
fi

This should work correctly as long as you have the ifconfig package 
installed - or a package with ifconfig in it installed.  Seawall starts 
properly on my system now

Simon


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to