Handle interface program with parameters

This commit is contained in:
Jamie Cameron
2009-07-23 21:34:05 -07:00
parent ad848b8d5a
commit a02ca65ff6

View File

@@ -402,7 +402,8 @@ if ($in{'drv'} == 0) {
return { 'mode' => 0 };
}
elsif ($in{'drv'} == 2) {
(-x $in{'iface'}) || &error(&text('webmin_edriver', $in{'iface'}));
my @iface = split(/\s+/, $in{'iface'});
-x $iface[0] || &error(&text('webmin_edriver', $iface[0]));
return { 'mode' => 2,
'program' => $in{'iface'} };
}