mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
- 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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user