1 |
diff -up smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.privilege.migrate smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.privilege |
2 |
--- smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.privilege.migrate 1970-01-01 10:00:00.000000000 +1000 |
3 |
+++ smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.privilege 2016-03-19 20:41:51.000000000 +1100 |
4 |
@@ -0,0 +1,7 @@ |
5 |
+{ |
6 |
+ my $tftpd = $DB->get("tftpd"); |
7 |
+ if ( defined $tftpd && $tftpd->prop("privilege") eq "r" ) |
8 |
+ { |
9 |
+ $tftpd->set_prop("privilege" => "ro"); |
10 |
+ } |
11 |
+} |
12 |
diff -up smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.timeout.migrate smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.timeout |
13 |
--- smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.timeout.migrate 1970-01-01 10:00:00.000000000 +1000 |
14 |
+++ smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.timeout 2016-03-19 20:43:27.000000000 +1100 |
15 |
@@ -0,0 +1,7 @@ |
16 |
+{ |
17 |
+ my $tftpd = $DB->get("tftpd") or return ""; |
18 |
+ if ( $tftpd->prop("timeout") eq "normal" ) |
19 |
+ { |
20 |
+ $tftpd->set_prop("timeout" => "default"); |
21 |
+ } |
22 |
+} |
23 |
diff -up smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.user.migrate smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.user |
24 |
--- smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.user.migrate 1970-01-01 10:00:00.000000000 +1000 |
25 |
+++ smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.user 2016-03-19 20:42:55.000000000 +1100 |
26 |
@@ -0,0 +1,7 @@ |
27 |
+{ |
28 |
+ my $tftpd = $DB->get("tftpd") or return ""; |
29 |
+ if ( $tftpd->prop("user") eq "root" ) |
30 |
+ { |
31 |
+ $tftpd->set_prop("user" => "nobody"); |
32 |
+ } |
33 |
+} |