]> git.pld-linux.org Git - packages/bash-completion.git/commitdiff
- PLD way of network interfaces. additionally ignores backup files
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 18 Feb 2005 10:25:58 +0000 (10: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.1

bash-completion-ifcfg.patch [new file with mode: 0644]

diff --git a/bash-completion-ifcfg.patch b/bash-completion-ifcfg.patch
new file mode 100644 (file)
index 0000000..d9add83
--- /dev/null
@@ -0,0 +1,16 @@
+--- ../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 @@
+                       /etc/sysconfig/network/ifcfg-* | \
+                       sed -ne 's|.*ifcfg-\('$cur'.*\)|\1|p' ) )
+       else
+-              # Assume Red Hat
++              # Assume PLD Linux
+               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.05259 seconds and 4 git commands to generate.