initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023
This commit is contained in:
18
root/etc/e-smith/db/configuration/migrate/20TelnetServerMode
Normal file
18
root/etc/e-smith/db/configuration/migrate/20TelnetServerMode
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
my $old = $DB->get('TelnetServerMode');
|
||||
return unless defined $old;
|
||||
my $status = $old->value;
|
||||
$old->delete;
|
||||
|
||||
my %props = (
|
||||
type => 'service',
|
||||
'status' => (($status eq 'off') ? 'disabled' : 'enabled'),
|
||||
access => 'private',
|
||||
);
|
||||
unless ($status =~ /off|on/)
|
||||
{
|
||||
# The other options are public and private.
|
||||
$props{access} = $status;
|
||||
}
|
||||
$DB->new_record('telnet', \%props);
|
||||
}
|
Reference in New Issue
Block a user