View Single Post
  #2   (View Single Post)  
Old 15th June 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

You don't define the variable ${firstchars}.
Code:
read firstline
firstline=`expr "$firstline" : '\(..\)'`

if [ "$firstchars" = "%!" ]
IMHO that should be
Code:
read firstline
firstchars=`expr "$firstline" : '\(..\)'`

if [ "$firstchars" = "%!" ]
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote