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:26:32.332309304 +0200 |
3 |
|
|
+++ smeserver-tftp-server-1.2/root/var/service/tftpd/run 2018-03-29 10:31:14.058068763 +0200 |
4 |
|
|
@@ -23,6 +23,7 @@ |
5 |
|
|
TFTPD_UDPPORT=$(/sbin/e-smith/db configuration getprop tftpd UDPPort); |
6 |
|
|
TFTPD_DIRECTORY=$(/sbin/e-smith/db configuration getprop tftpd directory); |
7 |
|
|
TFTPD_REFUSE=$(/sbin/e-smith/db configuration getprop tftpd refuse); |
8 |
|
|
+ TFTPD_BLKSIZE=$(/sbin/e-smith/db configuration getprop tftpd blksize); |
9 |
|
|
|
10 |
|
|
TFTPD_ACCESS_SETTING="127.0.0.1"; |
11 |
|
|
if [ $TFTPD_ACCESS == "public" ]; then |
12 |
|
|
@@ -49,16 +50,21 @@ |
13 |
|
|
fi |
14 |
|
|
|
15 |
|
|
TFTPD_REFUSE_SETTING="" |
16 |
|
|
- if [ $TFTPD_REFUSE != "" ]; then |
17 |
|
|
+ if [ "$TFTPD_REFUSE" != "" ]; then |
18 |
|
|
TFTPD_REFUSE_SETTING="-r $TFTPD_REFUSE"; |
19 |
|
|
fi |
20 |
|
|
- |
21 |
|
|
+ |
22 |
|
|
+ TFTPD_BLKSIZE_SETTING="" |
23 |
|
|
+ if [ "$TFTPD_BLKSIZE" != "" ]; then |
24 |
|
|
+ TFTPD_BLKSIZE_SETTING="-B $TFTPD_BLKSIZE"; |
25 |
|
|
+ fi |
26 |
|
|
+ |
27 |
|
|
cd / |
28 |
|
|
exec 2>&1 |
29 |
|
|
exec udpsvd -h $TFTPD_LOG_SETTING \ |
30 |
|
|
$TFTPD_ACCESS_SETTING $TFTPD_UDPPORT \ |
31 |
|
|
in.tftpd $TFTPD_LOG_SETTING $TFTPD_PRIVILEGE_SETTING \ |
32 |
|
|
- -u $TFTPD_USER $TFTPD_TIMEOUT_SETTING $TFTPD_REFUSE_SETTING -s $TFTPD_DIRECTORY |
33 |
|
|
+ -u $TFTPD_USER $TFTPD_TIMEOUT_SETTING $TFTPD_REFUSE_SETTING $TFTPD_BLKSIZE_SETTING -s $TFTPD_DIRECTORY |
34 |
|
|
else |
35 |
|
|
/usr/bin/runsvctrl down . |
36 |
|
|
fi |