Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#27496 - [netcfg] Hooks in /etc/network.d/hooks will not be executed

Attached to Project: Arch Linux
Opened by Daniel Baulig (daba) - Thursday, 08 December 2011, 19:33 GMT
Last edited by Jouke Witteveen (jouke) - Friday, 11 May 2012, 19:07 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Jouke Witteveen (jouke)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
If you install any hooks in the /etc/network.d/hooks folder, which is created at package installation, they will not be executed.

netcfg creates a hooks folder in /etc/network.d/ which suggestes, that putting hook-files there will work. I does not though. Inspecting /usr/lib/network/globals shows, that the /etc/network.d/hooks folder is not searched for hooks, but /usr/lib/network/hooks instead.

Additional info:
# netcfg -v
netcfg v2.6.8

Suggested fixes:

a) Remove the /etc/network.d/hooks folder and add documentation to the man-page of netcfg to install hooks in /usr/lib/network/hooks
b) Symlink from /etc/network.d/hooks to /usr/lib/network/hooks
c) Make /usr/lib/network/globals search /etc/network.d/hooks instead of /usr/lib/network/hooks for executables and symlink /usr/lib/network/hooks/arch to /etc/network.d/hooks by default. (my personal favorite)
This task depends upon

Closed by  Jouke Witteveen (jouke)
Friday, 11 May 2012, 19:07 GMT
Reason for closing:  Won't implement
Additional comments about closing:  I'm going with a. Netcfg is a simple tool and not a development platform. Either write extensions through /usr/lib/network/hooks, or write a netcfg wrapper. It is also possible to call a script from {PRE,POST}_{UP_DOWN}.
Comment by Guten (GutenYe) - Wednesday, 25 April 2012, 02:30 GMT
+1 for c) or d) solution.

d) source both /usr/lib/network/hooks and /etc/network.d/hooks.

see a forum discussion at https://bbs.archlinux.org/viewtopic.php?id=140166

Loading...