FS#7328 - /etc/rc.d/network sources its config files three times during a restart
Attached to Project:
Arch Linux
Opened by Arthur Danskin (wiremore) - Friday, 01 June 2007, 03:09 GMT
Last edited by James Rayner (iphitus) - Monday, 04 June 2007, 08:45 GMT
Opened by Arthur Danskin (wiremore) - Friday, 01 June 2007, 03:09 GMT
Last edited by James Rayner (iphitus) - Monday, 04 June 2007, 08:45 GMT
|
Details
This can be a problem if your config files (especially
/etc/conf.d/wireless) call complicated python scripts to
parse the output of "iwlist eth1 scan" and connect to the
right network. An easy solution is to refactor the start and
stop code into functions and replace
$0 stop $0 start with: start stop I wrote a feature request like this a while ago but it seems to have disappeared, so sorry if that was for good reason. Thanks! |
This task depends upon
Arthur, you can also test these scripts: http://wiki.archlinux.org/index.php/Network_Scripts
regardless, the new scripts do not source the configs, they use a different config form, and have explicit support for running commands before/after up/down of a network connection.