From e110a69d6217a6a9fa7bc87bb7ff2a60cda152fa Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 29 Mar 2010 16:17:01 -0700 Subject: Check return value from IFB correctly. --- scripts/vyatta-qos.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl index e5ea69a..6fc38dc 100755 --- a/scripts/vyatta-qos.pl +++ b/scripts/vyatta-qos.pl @@ -179,7 +179,7 @@ sub update_interface { system("sudo ip link add dev $ifb type ifb") == 0 or die "Can't create $ifb: $!"; - system("sudo ip link set dev $ifb up") + system("sudo ip link set dev $ifb up") == 0 or die "Can't bring $ifb up: $!"; print "qdisc add dev $device ingress\n"; -- cgit v1.2.3