summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/netrom-motd.patch17
-rw-r--r--debian/patches/series1
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/netrom-motd.patch b/debian/patches/netrom-motd.patch
new file mode 100644
index 0000000..09d12cc
--- /dev/null
+++ b/debian/patches/netrom-motd.patch
@@ -0,0 +1,17 @@
+--- a/node.c
++++ b/node.c
+@@ -302,6 +302,14 @@
+ #ifdef HAVEMOTD
+ if (User.ul_type == AF_NETROM) {
+ /* axio_printf(NodeIo, "%s} Welcome.\n", NodeId); */
++ if (check_perms(PERM_ANSI, 0L) != -1) {
++ node_msg("\e[01;34m[\e[01;37m%s\e[01;34m]\e[0m - Welcome to %s", VERSION, FlexId);
++ } else
++ node_msg("%s - Welcome to %s", VERSION, FlexId);
++ if ((fp = fopen(HAVEMOTD, "r")) != NULL) {
++ while (fgets(buf, 256, fp) != NULL) axio_puts(buf,NodeIo);
++ axio_puts ("\n",NodeIo);
++ }
+ } else
+ if ((User.ul_type == AF_INET) || (User.ul_type == AF_INET6)) {
+ if (check_perms(PERM_ANSI, 0L) != -1) {
diff --git a/debian/patches/series b/debian/patches/series
index 5cb9a02..95dbf75 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+netrom-motd.patch
non-interactive-install.patch
hardening
folder-update