Signed-off-by: Stephan Linz <[email protected]>
---
generic/etc/inetd.conf.d/ftpd | 1 +
rules/busybox.in | 11 +++++++++++
rules/busybox.make | 4 ++++
3 files changed, 16 insertions(+), 0 deletions(-)
create mode 100644 generic/etc/inetd.conf.d/ftpd
diff --git a/generic/etc/inetd.conf.d/ftpd b/generic/etc/inetd.conf.d/ftpd
new file mode 100644
index 0000000..d80c851
--- /dev/null
+++ b/generic/etc/inetd.conf.d/ftpd
@@ -0,0 +1 @@
+ftp stream tcp nowait root /usr/sbin/ftpd ftpd -w -S /tmp
diff --git a/rules/busybox.in b/rules/busybox.in
index 001d4fc..cc1a410 100644
--- a/rules/busybox.in
+++ b/rules/busybox.in
@@ -22,6 +22,17 @@ config BUSYBOX_INETD_STARTSCRIPT
prompt "install /etc/init.d/inetd"
choice
+ prompt "ftpd startup type"
+ depends on BUSYBOX_FTPD
+
+ config BUSYBOX_FTPD_INETD
+ bool
+ prompt "inetd"
+ help
+ start busybox ftpd server from inetd
+endchoice
+
+choice
prompt "telnetd startup type"
depends on BUSYBOX_TELNETD
diff --git a/rules/busybox.make b/rules/busybox.make
index 4c0a56e..75af30e 100644
--- a/rules/busybox.make
+++ b/rules/busybox.make
@@ -99,6 +99,10 @@ endif
$(call install_link, busybox, "$${to}", "$${link}"); \
done
+ifdef PTXCONF_BUSYBOX_FTPD_INETD
+ @$(call install_alternative, busybox, 0, 0, 0644,
/etc/inetd.conf.d/ftpd)
+endif
+
ifdef PTXCONF_BUSYBOX_TELNETD_INETD
@$(call install_alternative, busybox, 0, 0, 0644,
/etc/inetd.conf.d/telnetd)
endif
--
1.6.0.4
--
ptxdist mailing list
[email protected]