Lars wrote:
>
> > {
> >
> > $OUT = allow_udp_in(7002, 6003, 27005, 27010, 27011, 27015
> > (1));
> > }
> >
> >
> > Expand template
> > # /sbin/e-smith/expand-template /etc/rc.d/init.d/masq
>
> It doesn't work, i have saved the file in
> /etc/e-smith/templates/etc/rc.d/init.d/masq/ and called it
> 45AllowCS but when i run the expand template then it gives me
> this error
> ERROR in
> /etc/e-smith/templates//etc/rc.d/init.d/masq/45AllowCS:
> Program fragment delivered error <
> &esmith::__TEMPLATE__::1::allow_udp_in called at
> /etc/e-smith/templates//etc/rc.d/init.d/masq/45AllowCS line
> 3.>> at template line 1
> ERROR: Template processing failed for //etc/rc.d/init.d/masq:
> 1 fragment generated errors
> at /sbin/e-smith/expand-template line 66
>
> I Hope that someone has come up with a solusion and wants to
> share it with me,
>
> Thanks
>
> Lars Nørgaard
I don't know the scope of functions declared in template fragments, but it looks like you're trying to call a function [allow_udp_in(7002, 6003, 27005, 27010, 27011, 27015 (1));] that isn't defined. I don't have 5.6 to look at, but it's probably easier to just type out the lines you want to add, rather than using a function in your fragment.
Also, you shouldn't put your customizations in /templates/.
http://www.e-smith.org/custom/