From 9dddbfed944f9afaa3ebba37e65d20b5a0ad85bf Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Sun, 5 Mar 2023 10:50:42 -0700 Subject: Remove clear and cat from output init ram fs Both the clear and cat commands are not technically required, as they have bash builtin equivelants. This will shave off tens of kilobytes (very little unfortunately). This also changes the syntax of the parse_cmdline function to something more reasonable, also no longer using cat but using a bash builtin. --- init | 11 ++++++----- mkinitramfs | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/init b/init index b1d3fca..51758a9 100755 --- a/init +++ b/init @@ -23,10 +23,10 @@ export MOUNTOPTS=() screen_init() { # Clear screen - [ "${QUIET}" -eq 1 ] && clear + [ "${QUIET}" -eq 1 ] && printf '\033c' # Output message file if it exists - [ -f /etc/msg ] && cat /etc/msg + [ -f /etc/msg ] && printf '%s\n' "$(