From 66442a571e64f70ced00724e820955c0ffc7d144 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 24 Jun 2025 04:45:13 -0400 Subject: usr: Put OSH banner in /usr/share/motd Signed-off-by: Ian Moffett --- hyra-build.sh | 2 ++ rc/init.rc | 2 +- share/motd | 4 ++++ usr.bin/osh/osh.c | 6 ------ 4 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 share/motd diff --git a/hyra-build.sh b/hyra-build.sh index 28ceb10..f626f12 100755 --- a/hyra-build.sh +++ b/hyra-build.sh @@ -45,8 +45,10 @@ sysroot_skel() { mkdir -p base/boot/ mkdir -p base/usr/include/sys/ mkdir -p base/usr/rc + mkdir -p base/usr/share cp -r rc/* base/usr/rc + cp -r share/motd base/usr/share cp -f sys/include/sys/*.h base/usr/include/sys # Populate ESP diff --git a/rc/init.rc b/rc/init.rc index 257db5d..fc8a9f8 100644 --- a/rc/init.rc +++ b/rc/init.rc @@ -4,4 +4,4 @@ @ Hyra userspace startup script @ -osh +cat /usr/share/motd diff --git a/share/motd b/share/motd new file mode 100644 index 0000000..62718f4 --- /dev/null +++ b/share/motd @@ -0,0 +1,4 @@ +::::::::::::::::::::::::::::::::::::::: +:: OSMORA GATEWAY ~ Every key echos :: +:: ..... Proceed with purpose ..... :: +::::::::::::::::::::::::::::::::::::::: diff --git a/usr.bin/osh/osh.c b/usr.bin/osh/osh.c index aa8ef27..556b976 100644 --- a/usr.bin/osh/osh.c +++ b/usr.bin/osh/osh.c @@ -40,11 +40,6 @@ #define is_ascii(C) ((C) >= 0 && (C) <= 128) #define COMMENT '@' -#define WELCOME \ - ":::::::::::::::::::::::::::::::::::::::\n" \ - ":: OSMORA GATEWAY ~ Every key echos ::\n" \ - ":: ..... Proceed with purpose ..... ::\n" \ - ":::::::::::::::::::::::::::::::::::::::" #define HELP \ "Default commands:\n" \ @@ -385,7 +380,6 @@ main(int argc, char **argv) found = 0; bell_fd = open("/dev/beep", O_WRONLY); - puts(WELCOME); while (running) { fputs(PROMPT, stdout); -- cgit v1.2.3