update: dynamic version holder for /etc/issue

This commit is contained in:
ngn 2024-08-25 22:40:43 +03:00
parent ab7aa67da4
commit 777a1f1cbc
2 changed files with 5 additions and 4 deletions

View File

@ -3,13 +3,13 @@
MMMMMMMMMMMMMMMMMMMM
MMMM MMMM MMMM
MMMM MMMM MMMM
MMMM MMMM MMMM Welcome to \e[32mMatterLinux 24\e[0m\e[1m!
MMMM MMMM MMMM Welcome to \e[32mMatterLinux VERSION_HERE\e[0m\e[1m!
MMMM MMMM MMMM \e[37mKernel:\e[0m\e[1m \r \e[37mArch:\e[0m\e[1m \m \e[37mTTY:\e[0m\e[1m \l
MMMM MMMM MMMM
MMMM MMMM MMMM
\e[34m>>>\e[0m\e[1m Sync before installing packages: mp-sync
\e[34m>>>\e[0m\e[1m Sync before installing packages: matt sync
\e[34m>>>\e[0m\e[1m For installation: https://matterlinux.xyz/wiki/install
\e[34m>>>\e[0m\e[1m Join XMPP for questions: general@conf.matterlinux.xyz
\e[34m>>>\e[0m\e[1m For questions/chat: https://matterlinux.xyz/wiki/chat
Happy hacking!\e[0m

3
iso.sh
View File

@ -13,5 +13,6 @@ BUILD() {
echo "root:root" | chpasswd
systemctl preset-all
cp /usr/sbin/init .
sed -i "s/VERSION_HERE/$VERSION/g" /boot/grub/grub.cfg
sed -i "s/VERSION_HERE/${VERSION}/g" /etc/issue
sed -i "s/VERSION_HERE/${VERSION}/g" /boot/grub/grub.cfg
}