From 188e307f45a5e41d026ad325e71bf368ab8016c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 31 May 2005 17:25:50 +0000 Subject: [PATCH] - fixed case when eth0 was completed and eth1 was also present Changed files: bash-completion-ifcfg.patch -> 1.2 --- bash-completion-ifcfg.patch | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/bash-completion-ifcfg.patch b/bash-completion-ifcfg.patch index d9add83..a300a1a 100644 --- a/bash-completion-ifcfg.patch +++ b/bash-completion-ifcfg.patch @@ -1,16 +1,14 @@ ---- ../BUILD/bash_completion/bash_completion 2005-02-18 12:23:50.000000000 +0200 -+++ /tmp/bash_completion 2005-02-18 12:23:15.000000000 +0200 -@@ -230,10 +230,10 @@ +--- bash_completion 2005-05-31 20:21:36.000000000 +0300 ++++ /tmp/bash_completion 2005-05-31 20:21:09.000000000 +0300 +@@ -229,6 +229,11 @@ + COMPREPLY=( $( command ls \ /etc/sysconfig/network/ifcfg-* | \ sed -ne 's|.*ifcfg-\('$cur'.*\)|\1|p' ) ) ++ elif [ -f /etc/pld-release ]; then ++ # PLD Linux ++ COMPREPLY=( $( command ls -B \ ++ /etc/sysconfig/interfaces | \ ++ sed -ne 's|.*ifcfg-\('$cur'.*\)|\1|p' ) ) else -- # Assume Red Hat -+ # Assume PLD Linux + # Assume Red Hat COMPREPLY=( $( command ls \ -- /etc/sysconfig/network-scripts/ifcfg-* | \ -- sed -ne 's|.*ifcfg-\('$cur'.*\)|\1|p' ) ) -+ /etc/sysconfig/interfaces/ifcfg-* | \ -+ sed -ne 's|.*ifcfg-\('$cur'.*\)|\1|;/~$/!p' ) ) - fi - } - -- 2.44.0