1 |
brianr |
1.1 |
diff -ruN smeserver-tftp-server-1.2.old/root/var/service/tftpd/run smeserver-tftp-server-1.2/root/var/service/tftpd/run |
2 |
|
|
--- smeserver-tftp-server-1.2.old/root/var/service/tftpd/run 2018-03-29 10:49:17.177967160 +0200 |
3 |
|
|
+++ smeserver-tftp-server-1.2/root/var/service/tftpd/run 2018-11-12 16:48:14.583596187 +0100 |
4 |
|
|
@@ -24,7 +24,19 @@ |
5 |
|
|
TFTPD_DIRECTORY=$(/sbin/e-smith/db configuration getprop tftpd directory); |
6 |
|
|
TFTPD_REFUSE=$(/sbin/e-smith/db configuration getprop tftpd refuse); |
7 |
|
|
TFTPD_BLKSIZE=$(/sbin/e-smith/db configuration getprop tftpd blksize); |
8 |
|
|
- |
9 |
|
|
+ |
10 |
|
|
+ # If BLKSIZE is set |
11 |
|
|
+ if [ ! -z $TFTPD_BLKSIZE ]; then |
12 |
|
|
+ #echo "Block size $TFTPD_BLKSIZE" |
13 |
|
|
+ if [ "$TFTPD_BLKSIZE" -le "512" ] ; then |
14 |
|
|
+ TFTPD_BLKSIZE=1500; |
15 |
|
|
+ elif [ "$TFTPD_BLKSIZE" -ge "65464" ] ; then |
16 |
|
|
+ TFTPD_BLKSIZE=65464; |
17 |
|
|
+ fi |
18 |
|
|
+ #echo "Now we have $TFTPD_BLKSIZE" |
19 |
|
|
+ fi |
20 |
|
|
+ #echo "Block size is $TFTPD_BLKSIZE" |
21 |
|
|
+ |
22 |
|
|
TFTPD_ACCESS_SETTING="127.0.0.1"; |
23 |
|
|
if [ $TFTPD_ACCESS == "public" ]; then |
24 |
|
|
TFTPD_ACCESS_SETTING="0.0.0.0"; |