- Disable targets on -clear_config.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2242 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Mark Buechler
2010-09-24 15:49:59 +00:00
parent 6522a519fd
commit a75f4f934c

View File

@@ -2157,7 +2157,16 @@ sub clearConfiguration {
}
# Todo - check return code
# TODO: should we disable all target drivers as well?
my $drivers = $SCST->drivers();
foreach my $driver (@{$drivers}) {
my $targets = $SCST->targets($driver);
foreach my $target (@{$targets}) {
disableTarget($driver, $target);
}
}
print "\t-> Configuration cleared.\n";
}