initial commit of file from CVS for smeserver-tftp-server on Sat Sep 7 21:08:06 AEST 2024
This commit is contained in:
1
root/etc/e-smith/db/configuration/defaults/tftp/UDPPort
Normal file
1
root/etc/e-smith/db/configuration/defaults/tftp/UDPPort
Normal file
@@ -0,0 +1 @@
|
||||
69
|
1
root/etc/e-smith/db/configuration/defaults/tftp/access
Normal file
1
root/etc/e-smith/db/configuration/defaults/tftp/access
Normal file
@@ -0,0 +1 @@
|
||||
private
|
@@ -0,0 +1 @@
|
||||
/tftpboot
|
1
root/etc/e-smith/db/configuration/defaults/tftp/log
Normal file
1
root/etc/e-smith/db/configuration/defaults/tftp/log
Normal file
@@ -0,0 +1 @@
|
||||
normal
|
@@ -0,0 +1 @@
|
||||
ro
|
1
root/etc/e-smith/db/configuration/defaults/tftp/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/tftp/status
Normal file
@@ -0,0 +1 @@
|
||||
disabled
|
1
root/etc/e-smith/db/configuration/defaults/tftp/timeout
Normal file
1
root/etc/e-smith/db/configuration/defaults/tftp/timeout
Normal file
@@ -0,0 +1 @@
|
||||
default
|
1
root/etc/e-smith/db/configuration/defaults/tftp/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/tftp/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
1
root/etc/e-smith/db/configuration/defaults/tftp/user
Normal file
1
root/etc/e-smith/db/configuration/defaults/tftp/user
Normal file
@@ -0,0 +1 @@
|
||||
nobody
|
@@ -0,0 +1,7 @@
|
||||
{
|
||||
my $tftpd = $DB->get('tftpd') or return;
|
||||
if ( $tftpd->prop('privilege') eq "r" )
|
||||
{
|
||||
$tftpd->set_prop('privilege' => "ro");
|
||||
}
|
||||
}
|
7
root/etc/e-smith/db/configuration/migrate/tftpd.timeout
Normal file
7
root/etc/e-smith/db/configuration/migrate/tftpd.timeout
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
my $tftpd = $DB->get('tftpd') or return;
|
||||
if ( $tftpd->prop('timeout') eq "normal" )
|
||||
{
|
||||
$tftpd->set_prop('timeout' => "default");
|
||||
}
|
||||
}
|
7
root/etc/e-smith/db/configuration/migrate/tftpd.user
Normal file
7
root/etc/e-smith/db/configuration/migrate/tftpd.user
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
my $tftpd = $DB->get('tftpd') or return;
|
||||
if ( $tftpd->prop('user') eq "root" )
|
||||
{
|
||||
$tftpd->set_prop('user' => "nobody");
|
||||
}
|
||||
}
|
10
root/etc/e-smith/db/configuration/migrate/tftpd.v10
Normal file
10
root/etc/e-smith/db/configuration/migrate/tftpd.v10
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
my $tftpd = $DB->get("tftpd") or return;
|
||||
|
||||
my $tftp = $DB->get("tftp") ||
|
||||
$DB->new_record("tftp", { type => "service" });
|
||||
|
||||
$tftp->merge_props($tftpd->props);
|
||||
|
||||
$tftpd->delete;
|
||||
}
|
Reference in New Issue
Block a user