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') or return; |
7 |
+ if ( $tftpd->prop('privilege') eq "r" ) |
8 |
+ { |
9 |
+ $tftpd->set_prop('privilege' => "ro"); |
10 |
+ } |
11 |
+} |
12 |
\ No newline at end of file |
13 |
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 |
14 |
--- smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.timeout.migrate 1970-01-01 10:00:00.000000000 +1000 |
15 |
+++ smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.timeout 2016-03-19 20:43:27.000000000 +1100 |
16 |
@@ -0,0 +1,7 @@ |
17 |
+{ |
18 |
+ my $tftpd = $DB->get('tftpd') or return; |
19 |
+ if ( $tftpd->prop('timeout') eq "normal" ) |
20 |
+ { |
21 |
+ $tftpd->set_prop('timeout' => "default"); |
22 |
+ } |
23 |
+} |
24 |
\ No newline at end of file |
25 |
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 |
26 |
--- smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.user.migrate 1970-01-01 10:00:00.000000000 +1000 |
27 |
+++ smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.user 2016-03-19 20:42:55.000000000 +1100 |
28 |
@@ -0,0 +1,7 @@ |
29 |
+{ |
30 |
+ my $tftpd = $DB->get('tftpd') or return; |
31 |
+ if ( $tftpd->prop('user') eq "root" ) |
32 |
+ { |
33 |
+ $tftpd->set_prop('user' => "nobody"); |
34 |
+ } |
35 |
+} |
36 |
\ No newline at end of file |