]> git.pld-linux.org Git - packages/bash-completion.git/commitdiff
- fixed case when eth0 was completed and eth1 was also present
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 31 May 2005 17:25:50 +0000 (17:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-completion-ifcfg.patch -> 1.2

bash-completion-ifcfg.patch

index d9add8382c609f299572975b7f0e373b5e7474a7..a300a1a0a770d9cb3e5ca15a1791fc21f8fed434 100644 (file)
@@ -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
- }
This page took 0.067576 seconds and 4 git commands to generate.