From 71d70eb897601ebd2bfc7416066b1d4b18e3e15e Mon Sep 17 00:00:00 2001
From: Lukas Plevac <lukas@plevac.eu>
Date: Sat, 19 Oct 2024 20:03:30 +0200
Subject: [PATCH] live IP in issue

---
 airootfs/root/fast_install_stage2.sh | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/airootfs/root/fast_install_stage2.sh b/airootfs/root/fast_install_stage2.sh
index b34f678..2d5f0a4 100644
--- a/airootfs/root/fast_install_stage2.sh
+++ b/airootfs/root/fast_install_stage2.sh
@@ -22,9 +22,10 @@ pacman -Syy
 pacman -S --noconfirm man-pages man-db dnsutils ethtool iputils net-tools iproute2 openssh wget \
 usbutils usb_modeswitch tcpdump smartmontools  gnu-netcat mc dosfstools exfat-utils \
 partclone parted partimage gptfdisk iw dialog base-devel vim \
-grub os-prober efivar efibootmgr efitools intel-ucode amd-ucode dmidecode htop nano
+grub os-prober efivar efibootmgr efitools intel-ucode amd-ucode dmidecode htop nano python
 
-pacman -S --noconfirm slurm-llnl
+# future use
+#pacman -S --noconfirm slurm-llnl
 
 cd /usr/bin/
 ln -s vim vi
@@ -82,20 +83,21 @@ timedatectl set-ntp true
 
 echo "Generating issue"
 
-echo "             ___       ,-`."              >  /etc/issue
+echo "             ___       ,-\`."             >  /etc/issue
 echo "         .-~~   ~~-.,-~ _~ "              >> /etc/issue
-echo "       #`           `._-   "              >> /etc/issue
-echo "      .`           _-~.    "              >> /etc/issue
+echo "       #\`           \`._-   "            >> /etc/issue
+echo "      .\`           _-~.    "             >> /etc/issue
 echo "      |          _-   |    "              >> /etc/issue
-echo "      `       _-~     '    "              >> /etc/issue
-echo "  . _-~`. _-~       .'     "              >> /etc/issue
-echo " ,-' _,-~`-__   __-'       "              >> /etc/issue
-echo ",.-~`   .    ~~~           "              >> /etc/issue
+echo "      \`       _-~     '    "             >> /etc/issue
+echo "  . _-~\`. _-~       .'     "             >> /etc/issue
+echo " ,-' _,-~\`-__   __-'       "             >> /etc/issue
+echo ",.-~\`   .    ~~~           "             >> /etc/issue
 echo "                           "              >> /etc/issue
 echo "        SatrunArch         "              >> /etc/issue
 echo                                            >> /etc/issue
 echo "IP Addresses:"                            >> /etc/issue
-ip addr | grep inet | awk '{print "    " $2}'   >> /etc/issue
+"    \4"                                        >> /etc/issue
+"    \6"                                        >> /etc/issue
 echo                                            >> /etc/issue
 echo "Default login:"                           >> /etc/issue
 echo "    user: ${USER}"                        >> /etc/issue