/[smecontribs]/rpms/smeserver-tftp-server/contribs10/smeserver-tftp-server-1.2-blksize.patch
ViewVC logotype

Annotation of /rpms/smeserver-tftp-server/contribs10/smeserver-tftp-server-1.2-blksize.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Oct 29 18:46:44 2020 UTC (4 years ago) by brianr
Branch: MAIN
CVS Tags: smeserver-tftp-server-1_2-8_el7_sme, smeserver-tftp-server-1_2-7_el7_sme, smeserver-tftp-server-1_2-10_el7_sme, smeserver-tftp-server-1_2-11_el7_sme, smeserver-tftp-server-1_2-12_el7_sme, smeserver-tftp-server-1_2-13_el7_sme, smeserver-tftp-server-1_2-9_el7_sme, smeserver-tftp-server--, HEAD
Initial import

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed