https://qa.mandrakesoft.com/show_bug.cgi?id=1717
[EMAIL PROTECTED] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From [EMAIL PROTECTED] 2003-02-19 00:14 -------
fixed in 7.06-5mdk
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: RESOLVED
creation_date:
description:
When someone has an ifup-ppp configured (so we can have it on boot and load a
firewall, etc), upgrading from 9.0 to 9.1 beta breaks the configuration.
One problem is the initscripts assume every interface is an ethernet card, and
tries to use ifplugd. This is wrong, since there are PPP, PPPoE, PPPoATM, x.25,
Frame Relay, and other interfaces as well. ifplugd should be only used for eth*
interfaces.
The other problem is that the scripts use ip -o link ls dev $1, and that breaks
the above non-eth interfaces, since point-to-point links can hang and restart
using another device (ie, ppp0 dies, it respawns as ppp1).
Here are the patches that fix the problems.
--- network.orig 2003-02-17 00:06:33.000000000 -0500
+++ network 2003-02-17 00:34:33.000000000 -0500
@@ -56,7 +56,6 @@
LANG=C egrep -v '(~|\.bak)$' | \
LANG=C egrep 'ifcfg-[A-Za-z0-9\.]+$' | \
sed 's/^ifcfg-//g'`
-
# See how we were called.
case "$1" in
start)
@@ -137,7 +136,9 @@
;;
esac
}
- if grep -q '^MII_NOT_SUPPORTED' ifcfg-$i || [ ! -x /sbin/ifplugd
-o ${DEVICE/:/} != ${DEVICE} ]; then
+ if [ "x${DEVICE:0:3}" != "xeth" ];then
+ action "Bringing up interface %s: " $i ./ifup $DEVICE boot
+ elif grep -q '^MII_NOT_SUPPORTED' ifcfg-$i || [ ! -x
/sbin/ifplugd -o ${DEVICE/:/} != ${DEVICE} ]; then
action "Bringing up interface %s: " $i ./ifup $DEVICE boot
else
IFPLUGD_ARGS="${IFPLUGD_ARGS=-w -b}"
--- network-functions.orig 2003-02-17 00:29:20.000000000 -0500
+++ network-functions 2003-02-17 00:34:03.000000000 -0500
@@ -121,7 +121,7 @@
return 0
fi
else
- if LC_ALL=C ip -o link ls dev $1 2>/dev/null | grep -q ",UP" ; then
+ if LC_ALL=C ip -o link 2>/dev/null | grep $1 | grep -q ",UP" ; then
return 1
else
return 0