Bug 132427
| Summary: | No hook or method to run an ifdown-wireless script, patch attached | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matthew Swabey <mas01r> |
| Component: | initscripts | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED WONTFIX | QA Contact: | Brock Organ <borgan> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | mattdm, rvokal |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-09-30 21:54:12 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
ifdown-pre-local could be used for this as well. Too true. This was going to be the first of 3 submissions. I have modified my scripts to add a WPA switch to the wireless config script (in my case ifcfg-wlan0) which would invoke wpa_supplicant when it was run. Thats why I modified it to have a ifdown-wireless script. However it would take some work to get the other modifications into a submittable format and wpa_supplicant is not part of the distro, and as far as I know is unlikely to ever be. So submitting the rest seemed more than a little silly, if you take my meaning. Matthew Fedora Core 2 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC3 updates or in the FC4 test release, reopen and change the version to match. At this point, I doubt this would be added; at best, a separate ifup/ifdown.d might be added. |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040808 Firefox/0.9.3 Description of problem: There is no way of creating or editing an "ifdown-wireless" script, but with VPN and 802.1x solutions proliferating a method of shutting them down on interface shutdown is very helpful. Feature is added with attached patch which creates a hook to run a script named "ifdown-wireless" in the same fasion as "ifup-wireless" is run. Here is the diff -u against the ifdown from initscripts-7.55.1-1: --- ./ifdown 2004-09-13 11:13:38.707383616 +0100 +++ /etc/sysconfig/network-scripts/ifdown 2004-09-13 10:30:44.000000000 +0100 @@ -44,6 +44,9 @@ exec $OTHERSCRIPT $CONFIG $2 fi +# is the device wireless? If so, call the ifdown-wireless script +is_wireless_device ${DEVICE} && . ./ifdown-wireless + if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then /sbin/ip link set dev ${DEVICE} down /usr/sbin/brctl delif ${BRIDGE} ${DEVICE} Version-Release number of selected component (if applicable): initscripts-7.55.1-1 How reproducible: Always Steps to Reproduce: The functiionality is not present. Additional info: