summaryrefslogtreecommitdiff
path: root/scripts/vyatta-address
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-25 11:28:35 +1000
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-25 11:46:14 +1000
commit1acb297337d1a011d2daad7c15bd0368b02fc083 (patch)
tree136f616dcc5486194fb8784c8fe8ce010d14be1c /scripts/vyatta-address
parenta1087973b84c87fde430de4f66b188c0473fd54f (diff)
downloadvyatta-cfg-system-1acb297337d1a011d2daad7c15bd0368b02fc083.tar.gz
vyatta-cfg-system-1acb297337d1a011d2daad7c15bd0368b02fc083.zip
Pass interface name correctly when deleting dhcpv6
Bug 6726 Typo in vyatta-address script conversion from perl to shell (cherry picked from commit 4a319dd3a0aa95a92067fa677ad2e5d94534044b)
Diffstat (limited to 'scripts/vyatta-address')
-rwxr-xr-xscripts/vyatta-address2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-address b/scripts/vyatta-address
index 2e521c26..94fb1c59 100755
--- a/scripts/vyatta-address
+++ b/scripts/vyatta-address
@@ -32,7 +32,7 @@ case $1 in
exec /opt/vyatta/sbin/vyatta-interfaces.pl --dev="$2" --dhcp=stop
elif [[ "$3" = "dhcpv6" ]]
then
- exec /opt/vyatta/sbin/vyatta-dhcpv6-client.pl --stop --ifname $ifname
+ exec /opt/vyatta/sbin/vyatta-dhcpv6-client.pl --stop --ifname "$2"
elif [[ "$3" =~ ":" ]]
then
exec ip -6 addr del "$3" dev "$2"