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!
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!
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
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
|
DetailsDescription:
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}.
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}.
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