initial commit of file from CVS for smeserver-tftp-server on Sat Sep 7 21:08:06 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:08:06 +10:00
parent 2e9f176f5e
commit dd2326f8b1
27 changed files with 522 additions and 2 deletions

View File

@@ -0,0 +1 @@
69

View File

@@ -0,0 +1 @@
private

View File

@@ -0,0 +1 @@
/tftpboot

View File

@@ -0,0 +1 @@
normal

View File

@@ -0,0 +1 @@
ro

View File

@@ -0,0 +1 @@
disabled

View File

@@ -0,0 +1 @@
default

View File

@@ -0,0 +1 @@
service

View File

@@ -0,0 +1 @@
nobody

View File

@@ -0,0 +1,7 @@
{
my $tftpd = $DB->get('tftpd') or return;
if ( $tftpd->prop('privilege') eq "r" )
{
$tftpd->set_prop('privilege' => "ro");
}
}

View File

@@ -0,0 +1,7 @@
{
my $tftpd = $DB->get('tftpd') or return;
if ( $tftpd->prop('timeout') eq "normal" )
{
$tftpd->set_prop('timeout' => "default");
}
}

View File

@@ -0,0 +1,7 @@
{
my $tftpd = $DB->get('tftpd') or return;
if ( $tftpd->prop('user') eq "root" )
{
$tftpd->set_prop('user' => "nobody");
}
}

View 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;
}