3 |
+++ smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/migrate/tftpd.privilege 2016-03-19 20:41:51.000000000 +1100 |
+++ 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 @@ |
@@ -0,0 +1,7 @@ |
5 |
+{ |
+{ |
6 |
+ my $tftpd = $DB->get('tftpd') or return; |
+ my $tftpd = $DB->get("tftpd"); |
7 |
+ if ( $tftpd->prop('privilege') eq "r" ) |
+ if ( defined $tftpd && $tftpd->prop("privilege") eq "r" ) |
8 |
+ { |
+ { |
9 |
+ $tftpd->set_prop('privilege' => "ro"); |
+ $tftpd->set_prop("privilege" => "ro"); |
10 |
+ } |
+ } |
11 |
+} |
+} |
|
\ No newline at end of file |
|
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 |
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 |
--- 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 |
+++ 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 @@ |
@@ -0,0 +1,7 @@ |
16 |
+{ |
+{ |
17 |
+ my $tftpd = $DB->get('tftpd') or return; |
+ my $tftpd = $DB->get("tftpd") or return ""; |
18 |
+ if ( $tftpd->prop('timeout') eq "normal" ) |
+ if ( $tftpd->prop("timeout") eq "normal" ) |
19 |
+ { |
+ { |
20 |
+ $tftpd->set_prop('timeout' => "default"); |
+ $tftpd->set_prop("timeout" => "default"); |
21 |
+ } |
+ } |
22 |
+} |
+} |
|
\ No newline at end of file |
|
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 |
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 |
--- 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 |
+++ 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 @@ |
@@ -0,0 +1,7 @@ |
27 |
+{ |
+{ |
28 |
+ my $tftpd = $DB->get('tftpd') or return; |
+ my $tftpd = $DB->get("tftpd") or return ""; |
29 |
+ if ( $tftpd->prop('user') eq "root" ) |
+ if ( $tftpd->prop("user") eq "root" ) |
30 |
+ { |
+ { |
31 |
+ $tftpd->set_prop('user' => "nobody"); |
+ $tftpd->set_prop("user" => "nobody"); |
32 |
+ } |
+ } |
33 |
+} |
+} |
|
\ No newline at end of file |
|