2017-07-15 17:14:11 +00:00
|
|
|
# $Id: 98_unmark.pm 13246 2017-01-26 19:24:51Z betateilchen $
|
2017-01-22 18:51:42 +00:00
|
|
|
|
|
|
|
package main;
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
sub unmark_Initialize($$) {
|
|
|
|
$cmds{unmark} = { Fn => "CommandUnmark",
|
|
|
|
Hlp =>"<TEMPORARY|VOLATILE>,unmark devices"};
|
|
|
|
}
|
|
|
|
|
|
|
|
sub CommandUnmark($$)
|
|
|
|
{
|
|
|
|
my ($cl, $param) = @_;
|
|
|
|
my ($devspec,@marks) = split (" ",$param);
|
|
|
|
my @devices = devspec2array($devspec,undef);
|
|
|
|
my $ret = "";
|
|
|
|
|
|
|
|
foreach my $m (@marks) {
|
|
|
|
$m = uc($m);
|
|
|
|
next if( $m ne "TEMPORARY" && $m ne "VOLATILE" );
|
|
|
|
foreach my $d (@devices){
|
|
|
|
delete $defs{$d}{$m};
|
|
|
|
$ret .= "$d unmarked as $m\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
=pod
|
2017-01-26 17:51:46 +00:00
|
|
|
=item command
|
2017-01-22 18:51:42 +00:00
|
|
|
=item summary mark devices for TEMPORARY or VOLATILE
|
|
|
|
=item summary_DE markiert Geräte als TEMPORARY oder VOLATILE
|
|
|
|
=item command
|
|
|
|
=begin html
|
|
|
|
|
|
|
|
<a name="unmark"></a>
|
2017-01-26 17:51:46 +00:00
|
|
|
<h3>unmark</h3>
|
2017-01-22 18:51:42 +00:00
|
|
|
<ul>
|
|
|
|
<code>unmark <devspec> <TEMPORARY|VOLATILE></code>
|
|
|
|
<br><br>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
=end html
|
|
|
|
|
|
|
|
=cut
|