Comments below... On Sat, Dec 09, 2000 at 11:08:01PM +1100, Jeremy Higgs wrote: [snip] > [EMAIL PROTECTED]:~/rcf-5.0.1# dpkg -i rcf_5.0.1-1_i386.deb > (Reading database ... 47289 files and directories currently installed.) > Preparing to replace rcf 5.0.1-1 (using rcf_5.0.1-1_i386.deb) ... > /etc/init.d/firewall: [: =: unary operator expected > Unpacking replacement rcf ... > Setting up rcf (5.0.1-1) ... > Installing new version of config file /etc/init.d/firewall ... > /etc/init.d/firewall: [: =: unary operator expected
> #!/bin/sh [snip] > if [ $RETVAL eq 0 ] ^^ -eq > [ $RETVAL eq 0 ] \ ^^ -eq $ man bash /-eq leads you to the appropriate section in the manual page. :) $ test=2 $ if [ $test -eq 2 ];then echo "two"; else echo "not two";fi two $ but $ if [ $test eq 2 ];then echo "two"; else echo "not two";fi [: eq: binary operator expected not two $ > Can anyone see any problems with the /etc/init.d/firewall file? It > works (I presume) on RedHat and other systems, since I have installed > it on my RedHat gateway and it works fine! ? HTH Sven