I run

        shorewall version
                4.6.5.2

on linux/64.

I've added a script in a function

        /lib.private
                ...
                setup_intfc_external_loc030() {
                  /bin/sh /usr/local/etc/shorewall/scripts/eth-setup "eth0"
                }
                ...

if I add that script to

        /started
                ...
                setup_intfc_external_loc030
                ...

it compiles and execs without error.

if OTOH I mv that script to

        /initdone
                ...
14              setup_intfc_external_loc030
                ...

and compile, I get an error

        ...
        Compiling...
        Processing /usr/local/etc/shorewall/params ...
        Processing /usr/local/etc/shorewall/shorewall.conf...
        Compiling /usr/local/etc/shorewall/zones...
        Compiling /usr/local/etc/shorewall/interfaces...
        Compiling /usr/local/etc/shorewall/hosts...
        Determining Hosts in Zones...
        Locating Action Files...
        Compiling /usr/local/etc/shorewall/policy...
        Running /usr/local/etc/shorewall/initdone...
           ERROR: Couldn't parse /usr/local/etc/shorewall/initdone: Bareword 
"setup_intfc_external_loc030" not allowed while "strict subs" in use at 
/usr/local/etc/shorewall/initdone line 14.
        ...

why is that function OK in 'start', but not in 'initdone'?

bug, or something else?


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to