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

Annotation of /rpms/smeserver-tftp-server/contribs10/smeserver-tftp-server-1.2-blksize-check.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:43 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: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";

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