summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/netrom-motd.patch19
-rw-r--r--debian/patches/non-interactive-install.patch10
2 files changed, 22 insertions, 7 deletions
diff --git a/debian/patches/netrom-motd.patch b/debian/patches/netrom-motd.patch
index d8243fa..8c53a1f 100644
--- a/debian/patches/netrom-motd.patch
+++ b/debian/patches/netrom-motd.patch
@@ -1,18 +1,23 @@
--- a/node.c
+++ b/node.c
-@@ -301,6 +301,7 @@
+@@ -301,6 +301,11 @@
node_log(LOGLVL_LOGIN, "%s @ %s logged in", User.call, User.ul_name);
#ifdef HAVEMOTD
if (User.ul_type == AF_NETROM) {
-+ axio_printf(NodeIo, "Fit like eh day Netrommie. \n");
++ node_msg("%s - Welcome to %s", VERSION, NodeId);
++ if ((fp = fopen(HAVEMOTD, "r")) != NULL) {
++ while (fgets(buf, 256, fp) != NULL) axio_puts(buf,NodeIo);
++ axio_puts ("\n",NodeIo);
++ }
/* axio_printf(NodeIo, "%s} Welcome.\n", NodeId); */
} else
if ((User.ul_type == AF_INET) || (User.ul_type == AF_INET6)) {
-@@ -362,6 +363,7 @@
- else if ((User.ul_type != AF_NETROM) && (User.ul_type != AF_ROSE)) {
- node_prompt();
- } else if ((User.ul_type == AF_NETROM) || (User.ul_type == AF_ROSE)) {
-+ node_prompt();
+@@ -365,6 +370,8 @@
axio_printf(NodeIo,"\n");
}
}
++ } else {
++ node_prompt();
+ }
+ if (check_perms(PERM_ANSI, 0L) != -1) {
+ /* Not needed from what I see so far. */
diff --git a/debian/patches/non-interactive-install.patch b/debian/patches/non-interactive-install.patch
index 68a2d9b..c9f7252 100644
--- a/debian/patches/non-interactive-install.patch
+++ b/debian/patches/non-interactive-install.patch
@@ -16,3 +16,13 @@ Last-Update: 2018-02-10
_sleep()
{
[ "$NON_INTERACTIVE" = 1 ] || sleep "$@"
+@@ -122,6 +116,9 @@
+ if [ $? -ne 1 ]
+ then
+ HAVEAX25="#define HAVE_AX25 1"
++ #These have been moved out of tcp-ip so I have an MOTD when I don't build telnet in
++ HAVEMOTD="#define HAVEMOTD"
++ MOTDPATH='"/etc/ax25/uronode.motd"'
+ fi
+ #
+ # echo -n "Include support for the FlexNet protocol ? [Y/n]: "; read answer