Add support for PLD Linux to _configured_interfaces(). Patch from Elan

Ruusamäe <glen@delfi.ee>.
This commit is contained in:
ianmacd 2006-02-25 10:37:32 +00:00
parent 760c04a0a9
commit 8e4bddf52d

View File

@ -1,7 +1,7 @@
# bash_completion - programmable completion functions for bash 3.x # bash_completion - programmable completion functions for bash 3.x
# (backwards compatible with bash 2.05b) # (backwards compatible with bash 2.05b)
# #
# $Id: bash_completion,v 1.855 2006/02/25 00:24:16 ianmacd Exp $ # $Id: bash_completion,v 1.856 2006/02/25 11:37:32 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -235,6 +235,11 @@ _configured_interfaces()
COMPREPLY=( $( command ls \ COMPREPLY=( $( command ls \
/etc/sysconfig/network/ifcfg-* | \ /etc/sysconfig/network/ifcfg-* | \
sed -ne 's|.*ifcfg-\('$cur'.*\)|\1|p' ) ) 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 else
# Assume Red Hat # Assume Red Hat
COMPREPLY=( $( command ls \ COMPREPLY=( $( command ls \