>
> Hello,
>
> I have the same Error if the file is not executable !
>
> chmod 700 /etc/network/if-pre-up.d/myfilter
>
> Greetings
> Michelle
>
recall that I had a script called myfilter (/bin/sh script)
in /etc/network/if-pre-up.d/ AND I had the line
pre-up myfilter in my /etc/network/interfaces files. It turns
out that one does NOT need to add the pre-up line, the script gets
run by run-parts automatically..presumably if it's executable which it was
.... yes the manpage mentions run-parts but it does
not explicitly say one does not need to mention the pre-up line for scripts
that are the special directories.....i think a little clarification may
be in order for the manpage.
NOTE one can run any command in the pre-up line. It's a simple matter
to put in pre-up env >somefile to see what environment variables are set. IN
particular PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
and consequently one could run iptables directly....
No doubt the more learned users on the list are wondering what all the fuss is
all about ;-)
> --
> Registered Linux-User #280138 with the Linux Counter, http://counter.li.org/
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>