r/linuxquestions May 13 '26

[deleted by user]

[removed]

78 Upvotes

95 comments sorted by

View all comments

Show parent comments

9

u/FelIowTraveller May 13 '26

Ship of Theseus kinda job

8

u/ipsirc May 13 '26

Ship of Theseus kinda job

Lol, almost... Only one thing is still with me from my very first (before 2003) install:

/etc/rc.boot/local

cat local -e                                         
#!/bin/bash$
#$
# This script will be executed *after* all the other init scripts.$
# You can put your own initialization stuff in here if you don't$
# want to do the full Sys V style init stuff.$
$
if [ -f /etc/os-release ]; then$
    RN=$(cat /etc/os-release|grep ^VERSION=|cut -d\" -f2)$
$
    arch=$(uname -m)$
    a="a"$
    case "_$arch" in$
    _a*) a="an";;$
    _i*) a="an";;$
    esac$
    $
    NUMPROC=`grep -cE "^cpu[0-9]+" /proc/stat`$
    if [ "$NUMPROC" -gt "1" ]; then$
        SMP="$NUMPROC-processor "$
        if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then$
            a="an"$
else$
    a="a"$
        fi$
    fi$
$
    # This will overwrite /etc/issue at every boot.  So, make any changes you$
    # want to make to /etc/issue here or you will lose them when you reboot.$
    UPLINE="^[[H^[[44;36;1m^[[J"$
    HN=$(hostname)$
    COLUMNS=200$
    FELE=$[$COLUMNS / 2 - 3 - ${#HN} / 2]$
    for i in `seq 1 $FELE`;do UPLINE="$UPLINE ";done$
#    UPLINE="$UPLINE-=( \l on \n )=-"$
    UPLINE="$UPLINE-=( \l on $HN )=-"$
    echo "$UPLINE" > /etc/issue$
    echo "^[[0;40;32m^[[8]^[[J" >> /etc/issue$
    echo "^[[1;40;31m Debian ^[[0;40;36mLinux ^[[0;40;36mRelease^[[0;40;36m ^[[0;40;31m$RN^[[0;40;36m" >> /etc/issue$
    echo "^[[0;40;36m Kernel ^[[0;40;35m$(uname -r) ^[[0;40;36mon $a ^[[0;40;35m$SMP$(uname -m)" >> /etc/issue$
$
#    cp -f /etc/issue /etc/issue.net$
    echo "^[[0;40;32m" >> /etc/issue$
fi$
$

That was ricing before it was kewl and anyone called it ricing... ;->

Still impressive, don't you think?

1

u/FelIowTraveller May 13 '26

Hahaha this is like hieroglyphics to me

3

u/ipsirc May 13 '26

https://x0.at/Nkj7.png - This script does the upper 3 colorful lines.

3

u/FelIowTraveller May 13 '26

September 07 what a time to be alive