1 |
|
diff -up smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/defaults/tftpd/user.refuse smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/defaults/tftpd/user |
2 |
|
--- smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/defaults/tftpd/user.refuse 2006-04-04 09:12:17.000000000 +1000 |
3 |
|
+++ smeserver-tftp-server-1.0/root/etc/e-smith/db/configuration/defaults/tftpd/user 2016-03-17 22:12:19.000000000 +1100 |
4 |
|
@@ -1 +1 @@ |
5 |
|
-root |
6 |
|
\ No newline at end of file |
7 |
|
+nobody |
8 |
diff -up smeserver-tftp-server-1.0/root/var/service/tftpd/run.refuse smeserver-tftp-server-1.0/root/var/service/tftpd/run |
diff -up smeserver-tftp-server-1.0/root/var/service/tftpd/run.refuse smeserver-tftp-server-1.0/root/var/service/tftpd/run |
9 |
--- smeserver-tftp-server-1.0/root/var/service/tftpd/run.refuse 2006-01-21 23:56:00.000000000 +1100 |
--- smeserver-tftp-server-1.0/root/var/service/tftpd/run.refuse 2016-03-17 22:10:15.000000000 +1100 |
10 |
+++ smeserver-tftp-server-1.0/root/var/service/tftpd/run 2016-03-15 21:47:04.000000000 +1100 |
+++ smeserver-tftp-server-1.0/root/var/service/tftpd/run 2016-03-16 23:04:45.000000000 +1100 |
11 |
@@ -11,6 +11,7 @@ |
@@ -11,6 +11,7 @@ |
12 |
#PROP: timeout: VALUES: default/300 (secounds, 900 is the default) |
#PROP: timeout: VALUES: default/300 (secounds, 900 is the default) |
13 |
#PROP: UDPPort: VALUES: 69 |
#PROP: UDPPort: VALUES: 69 |
16 |
|
|
17 |
TFTPD_STATUS=$(/sbin/e-smith/db configuration getprop tftpd status); |
TFTPD_STATUS=$(/sbin/e-smith/db configuration getprop tftpd status); |
18 |
if [ $TFTPD_STATUS == "enabled" ]; then |
if [ $TFTPD_STATUS == "enabled" ]; then |
19 |
@@ -21,35 +22,41 @@ if [ $TFTPD_STATUS == "enabled" ]; then |
@@ -21,35 +22,43 @@ if [ $TFTPD_STATUS == "enabled" ]; then |
20 |
TFTPD_TIMEOUT=$(/sbin/e-smith/db configuration getprop tftpd timeout); |
TFTPD_TIMEOUT=$(/sbin/e-smith/db configuration getprop tftpd timeout); |
21 |
TFTPD_UDPPORT=$(/sbin/e-smith/db configuration getprop tftpd UDPPort); |
TFTPD_UDPPORT=$(/sbin/e-smith/db configuration getprop tftpd UDPPort); |
22 |
TFTPD_DIRECTORY=$(/sbin/e-smith/db configuration getprop tftpd directory); |
TFTPD_DIRECTORY=$(/sbin/e-smith/db configuration getprop tftpd directory); |
38 |
- elif [ $TFTPD_LOG == "normal" ]; then |
- elif [ $TFTPD_LOG == "normal" ]; then |
39 |
- TFTPD_LOG_SETTING='-v'; |
- TFTPD_LOG_SETTING='-v'; |
40 |
+ TFTPD_LOG_SETTING="-vv"; |
+ TFTPD_LOG_SETTING="-vv"; |
41 |
|
+ elif [ $TFTPD_LOG == "disabled" ]; then |
42 |
|
+ TFTPD_LOG_SETTING=""; |
43 |
fi |
fi |
44 |
|
|
45 |
+ TFTPD_PRIVILEGE_SETTING="" |
+ TFTPD_PRIVILEGE_SETTING="" |
61 |
cd / |
cd / |
62 |
exec 2>&1 |
exec 2>&1 |
63 |
- exec udpsvd -h $TFTPD_LOG_SETTING -u$TFTPD_USER \ |
- exec udpsvd -h $TFTPD_LOG_SETTING -u$TFTPD_USER \ |
64 |
+ exec udpsvd -h $TFTPD_LOG_SETTING -u $TFTPD_USER \ |
+ exec udpsvd -h $TFTPD_LOG_SETTING \ |
65 |
$TFTPD_ACCESS_SETTING $TFTPD_UDPPORT \ |
$TFTPD_ACCESS_SETTING $TFTPD_UDPPORT \ |
66 |
in.tftpd $TFTPD_LOG_SETTING $TFTPD_PRIVILEGE_SETTING \ |
in.tftpd $TFTPD_LOG_SETTING $TFTPD_PRIVILEGE_SETTING \ |
67 |
- -u $TFTPD_USER $TFTPD_TIMEOUT_SETTING -s $TFTPD_DIRECTORY |
- -u $TFTPD_USER $TFTPD_TIMEOUT_SETTING -s $TFTPD_DIRECTORY |