On 2023-10-21, at 19:16:15 +0300, Vincas Dargis wrote:
> On Sat, 21 Oct 2023 13:27:46 +0100 Jeremy Sowden wrote:
> > init.fedora.sh, on the other hand, is a System V init-script
> 
> Oh, sorry, I've directed to the wrong file...
> 
> Re-checked IRC logs, it was ifupdown.fedora.sh, not init.fedora.sh.
> 
> I was said that ifupdown.fedora.sh is NetworkManager script.

That makes more sense. :)

I've compared the Debian and Fedora ifupdown scripts and the Fedora one
does have some extra code to allow it to work as an NM dispatcher.  How-
ever, the Fedora script just starts or stops all the configured pro-
ducts, whereas the Debian script checks for the `ADDRFAM` environment
variable which ifupdown sets to `inet` or `inet6` in order to start or
stop only the products which match the address family.  The 01-ifupdown
dispatcher script that has been removed from NetworkManager makes sure
to set this variable appropriately before calling the ifupdown script,
and the dispatcher script I proposed earlier does likewise.

I have run some tests with it and it works, so I'm going to go with
that.

In summary, using the Fedora script will mostly work, the script I wrote
will work better, and there should be a new shorewall-init package
along in the not too distant future with my script in it.

J.

Attachment: signature.asc
Description: PGP signature

Reply via email to