Commit a3d88084 authored by Mac Newbold's avatar Mac Newbold

Fixed power control bug.

parent 7f4c003d
......@@ -397,7 +397,7 @@ sub ParseArgs {
if ( !($device =~ /^(Intel)|(Cisco)$/) &&
($d||$e||$a||$spd||$dup||$s||$g||@vlan||$f||@r||$l));
die("$i is not a power controller.\n")
if ( $device eq "APC" && ($on||$off||$cyc) );
if ( $device ne "APC" && ($on||$off||$cyc) );
die("Can't enable and disable at the same time.\n") if ($d && $e);
die("Can't use auto with duplex or speed.\n") if(($a=~/en/)&&($dup||$spd));
my $n=0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment