summaryrefslogtreecommitdiff
path: root/slackware-bootstrap/step2
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-07-03 21:59:24 +0200
committernavewindre <boneyaard@gmail.com>2025-07-03 21:59:24 +0200
commitc6c0f342c889eee0e6db6a192a3b5aad510120a7 (patch)
tree20bcd07d179cad849690d10026f80ab8d8724d97 /slackware-bootstrap/step2
parent8d26fa137a69df86d033a2681f989557c1af32ea (diff)
split
Diffstat (limited to 'slackware-bootstrap/step2')
-rw-r--r--slackware-bootstrap/step259
1 files changed, 35 insertions, 24 deletions
diff --git a/slackware-bootstrap/step2 b/slackware-bootstrap/step2
index ffc4b1d..2598cf7 100644
--- a/slackware-bootstrap/step2
+++ b/slackware-bootstrap/step2
@@ -5,39 +5,49 @@ kernelver="6.15.2"
rm /root/.bash_profile
-sh $basedir/slpkg
-sh $basedir/multilib
+if [[ ! -f "~/.slpkg-done" ]]; then
+ sh $basedir/slpkg
+fi
+
+if [[ ! -f "~/.multilib-done" ]]; then
+ sh $basedir/multilib
+fi
-echo "============== [ kernel update ] ==============="
-echo "you can choose to update your kernel"
-echo "after system reboot."
-echo "this will update your kernel to $kernelver"
-echo "================================================"
+if [[ ! -f "~/.kernel-done" ]]; then
+ echo "============== [ kernel update ] ==============="
+ echo "you can choose to update your kernel"
+ echo "after system reboot."
+ echo "this will update your kernel to $kernelver"
+ echo "================================================"
-nreboot=0
+ nreboot=0
-read -p "do you want to update your kernel [y/n]? (y):" choice
-if [[ $choice == "y" ]]; then
- nreboot=1
- sh $basedir/kernel
+ read -p "do you want to update your kernel [y/n]? (y):" choice
+ if [[ $choice == "y" ]]; then
+ nreboot=1
+ sh $basedir/kernel
+ fi
fi
-echo "================= [ nvidia driver ] ================="
-echo "you can choose to install the nvidia driver"
-echo "after system reboot."
-echo "this will install the nvidia kernel module and the"
-echo "gpu driver."
-echo "====================================================="
-
-read -p "do you want to install the nvidia driver [y/n]? (y):" choice
-if [[ $choice == "y" ]]; then
- nreboot=1
- sh $basedir/nvidia
+if [[ ! -f "~/.nvidia-done" ]]; then
+ echo "================= [ nvidia driver ] ================="
+ echo "you can choose to install the nvidia driver"
+ echo "after system reboot."
+ echo "this will install the nvidia kernel module and the"
+ echo "gpu driver."
+ echo "====================================================="
+
+ read -p "do you want to install the nvidia driver [y/n]? (y):" choice
+ if [[ $choice == "y" ]]; then
+ nreboot=1
+ sh $basedir/nvidia
+ fi
fi
+touch ~/.step2-done
if [[ $nreboot == 1 ]]; then
echo "sh $basedir/finish" >> /root/.bash_profile
- echo "rm -f /root/.bashrc" >> /root/.bash_profile
+ echo "rm -f /root/.bash_profile" >> /root/.bash_profile
echo "============================ [ reboot ] ==========================="
printf "\x1b[1;31mupon reboot, make sure to log in as ROOT first !!!\x1b[0;0m\n"
echo "==================================================================="
@@ -46,6 +56,7 @@ if [[ $nreboot == 1 ]]; then
reboot
else
sh $basedir/runlevel
+ sh $basedir/cleanup
echo "============== [ setup done ] ==============="
echo "username: $username"