* [gentoo-commits] proj/openrc:openrc-0.9.8.x commit in: net/
@ 2012-01-25 18:47 Robin H. Johnson
2012-01-25 18:48 ` [gentoo-commits] proj/openrc:openrc-0.9.8.2 " Robin H. Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Robin H. Johnson @ 2012-01-25 18:47 UTC (permalink / raw
To: gentoo-commits
commit: 85193674dafb1bed7f036f47fce043a20e501d90
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 25 18:30:33 2012 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed Jan 25 18:46:25 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=85193674
net/bonding: Fix which interface IPs get added to.
The previous bonding change of ensuring interfaces were down to add
slave interfaces, but it clobbered the IFACE variable, because it was
being passed to a bash function rather than a command.
Cherry-picked from master/c92f0ab702.
X-Gentoo-Bug: 400613
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400613
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
net/bonding.sh | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/net/bonding.sh b/net/bonding.sh
index 6a83a8c..21c00e3 100644
--- a/net/bonding.sh
+++ b/net/bonding.sh
@@ -102,15 +102,21 @@ bonding_pre_start()
eoutdent
if [ -d /sys/class/net ]; then
sys_bonding_path=/sys/class/net/"${IFACE}"/bonding
+ local oiface
+ oiface=$IFACE
if [ -n "${primary}" ]; then
- IFACE=$primary _down
+ IFACE=$primary
+ _down
+ IFACE=$oiface
echo "+${primary}" >$sys_bonding_path/slaves
echo "${primary}" >$sys_bonding_path/primary
fi
for s in ${slaves}; do
[ "${s}" = "${primary}" ] && continue
if ! grep -q ${s} $sys_bonding_path/slaves; then
- IFACE=$s _down
+ IFACE=$s
+ _down
+ IFACE=$oiface
echo "+${s}" >$sys_bonding_path/slaves
fi
done
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/openrc:openrc-0.9.8.2 commit in: net/
2012-01-25 18:47 [gentoo-commits] proj/openrc:openrc-0.9.8.x commit in: net/ Robin H. Johnson
@ 2012-01-25 18:48 ` Robin H. Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Robin H. Johnson @ 2012-01-25 18:48 UTC (permalink / raw
To: gentoo-commits
commit: 85193674dafb1bed7f036f47fce043a20e501d90
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 25 18:30:33 2012 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed Jan 25 18:46:25 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=85193674
net/bonding: Fix which interface IPs get added to.
The previous bonding change of ensuring interfaces were down to add
slave interfaces, but it clobbered the IFACE variable, because it was
being passed to a bash function rather than a command.
Cherry-picked from master/c92f0ab702.
X-Gentoo-Bug: 400613
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=400613
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
net/bonding.sh | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/net/bonding.sh b/net/bonding.sh
index 6a83a8c..21c00e3 100644
--- a/net/bonding.sh
+++ b/net/bonding.sh
@@ -102,15 +102,21 @@ bonding_pre_start()
eoutdent
if [ -d /sys/class/net ]; then
sys_bonding_path=/sys/class/net/"${IFACE}"/bonding
+ local oiface
+ oiface=$IFACE
if [ -n "${primary}" ]; then
- IFACE=$primary _down
+ IFACE=$primary
+ _down
+ IFACE=$oiface
echo "+${primary}" >$sys_bonding_path/slaves
echo "${primary}" >$sys_bonding_path/primary
fi
for s in ${slaves}; do
[ "${s}" = "${primary}" ] && continue
if ! grep -q ${s} $sys_bonding_path/slaves; then
- IFACE=$s _down
+ IFACE=$s
+ _down
+ IFACE=$oiface
echo "+${s}" >$sys_bonding_path/slaves
fi
done
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-25 18:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-25 18:47 [gentoo-commits] proj/openrc:openrc-0.9.8.x commit in: net/ Robin H. Johnson
2012-01-25 18:48 ` [gentoo-commits] proj/openrc:openrc-0.9.8.2 " Robin H. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox