From 14cf7c177935c04bf785677a2946ea0a0c0df491 Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Tue, 11 Oct 2016 17:59:19 -0700 Subject: Fix typo'd variable in 6to4 cleanup Thanks to shellcheck. :) This is ontop of the whitespace PRs, those should go in first. --- sysconfig/network-scripts/network-functions-ipv6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6 index 6ff6a76f..2017e273 100644 --- a/sysconfig/network-scripts/network-functions-ipv6 +++ b/sysconfig/network-scripts/network-functions-ipv6 @@ -236,8 +236,8 @@ ipv6_cleanup_6to4_device() { ipv6_test testonly || return 2 # Cleanup 6to4 addresses on this device - /sbin/ip -6 addr show dev $dev scope global permanent | awk '/\/ && $2 ~ /^2002:/ { print $2 }' | while read addr; do - /sbin/ip -6 addr del ${addr} dev ${dev} + /sbin/ip -6 addr show dev $device scope global permanent | awk '/\/ && $2 ~ /^2002:/ { print $2 }' | while read addr; do + /sbin/ip -6 addr del ${addr} dev ${device} done # Get all IPv6 routes through given interface related to 6to4 and remove them -- cgit v1.2.1