diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-24 04:45:13 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-24 04:45:13 -0400 |
commit | 66442a571e64f70ced00724e820955c0ffc7d144 (patch) | |
tree | bb907739d8ea0c8212375cef4e087d5548980c28 | |
parent | 88845750041260523fe35c4f8b4bca7f5890e45b (diff) |
usr: Put OSH banner in /usr/share/motd
Signed-off-by: Ian Moffett <ian@osmora.org>
-rwxr-xr-x | hyra-build.sh | 2 | ||||
-rw-r--r-- | rc/init.rc | 2 | ||||
-rw-r--r-- | share/motd | 4 | ||||
-rw-r--r-- | usr.bin/osh/osh.c | 6 |
4 files changed, 7 insertions, 7 deletions
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 @@ -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); |