Artix Linux Forum

General Category => Artwork, Screenshots, Widgets => Topic started by: cr6 on 11 April 2024, 21:44:51

Title: Another boot welcome
Post by: cr6 on 11 April 2024, 21:44:51
With Artix runit it happens in this file: /usr/lib/rc/functions

Code: [Select]
print_welcome() {
    # see os-release(5)
    . /usr/lib/os-release

    echo " "
    printhl "${PRETTY_NAME}\n"
    printhl "${C_H2}${HOME_URL}"
    printsep
}

Whereas in systemd it's hardcoded (https://github.com/systemd/systemd/blob/main/src/core/main.c#L1332) >:(  :'(
Title: Re: Another boot welcome
Post by: cr6 on 11 April 2024, 22:18:12
For example:

Code: [Select]
$ neofetch -L > log
$ sudo mv log /etc/motd

And then modify /usr/lib/rc/functions to include:

Code: [Select]
print_welcome() {
    # see os-release(5)
    . /usr/lib/os-release

    echo " "
    cat /etc/motd
#    printhl "${PRETTY_NAME}\n"
    printhl "${C_H2}${HOME_URL}"
    printsep
}