aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions10
-rwxr-xr-xrc.sysinit6
2 files changed, 12 insertions, 4 deletions
diff --git a/functions b/functions
index 794766c..d7b2026 100644
--- a/functions
+++ b/functions
@@ -335,6 +335,16 @@ kill_all() {
fi
}
+print_welcome() {
+ # see os-release(5)
+ . /etc/os-release
+
+ echo " "
+ printhl "${PRETTY_NAME}\n"
+ printhl "${C_H2}${HOME_URL}"
+ printsep
+}
+
load_modules() {
local rc=0
diff --git a/rc.sysinit b/rc.sysinit
index c031531..8a3c5a4 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -12,10 +12,8 @@ elif [[ $LOCALE ]]; then
export LANG=$LOCALE
fi
-echo " "
-printhl "Arch Linux\n"
-printhl "${C_H2}https://www.archlinux.org"
-printsep
+# Prints distro name and URL
+print_welcome
# mount the API filesystems
# /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm