From: Michael Tremer Date: Sat, 25 Jul 2009 14:08:05 +0000 (+0200) Subject: network: Fixed renaming of wildcard devices. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e843f4336418df3d2d531f8c1249fcfdf25c4198;p=ipfire-3.x.git network: Fixed renaming of wildcard devices. --- diff --git a/src/network/functions b/src/network/functions index 98cd98539..aca6e55a0 100644 --- a/src/network/functions +++ b/src/network/functions @@ -148,7 +148,7 @@ function device_rename() { local destination=$2 # Replace + by a valid number - if [[ ${destination} =~ +$ ]]; then + if grep -qE "+$" <<<${destination}; then local number=0 destination=$(sed -e "s/+//" <<<$destination) while [ "${number}" -le "100" ]; do