From c6c0f342c889eee0e6db6a192a3b5aad510120a7 Mon Sep 17 00:00:00 2001 From: navewindre Date: Thu, 3 Jul 2025 21:59:24 +0200 Subject: split --- slackware-bootstrap/step1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'slackware-bootstrap/step1') diff --git a/slackware-bootstrap/step1 b/slackware-bootstrap/step1 index 8085554..d48abac 100644 --- a/slackware-bootstrap/step1 +++ b/slackware-bootstrap/step1 @@ -1,9 +1,25 @@ #!/bin/bash basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -sh $basedir/slackpkg +if [[ -f "~/.step1-done" ]]; then + sh $basedir/step2 + exit +fi + +if [[ ! -f "~/.stable-done" ]]; then + sh $basedir/update-stable +fi + +if [[ ! -f "~/.current-done" ]]; then + sh $basedir/update-current +fi + +if [[ ! -f "~/.purge-done" ]]; then + sh $basedir/package-purge +fi echo "sh $basedir/step2" >> /root/.bash_profile +touch ~/.step1-done echo "=================== [ system reboot ] ==================" printf "\x1b[1;31mREAD CAREFULLY:\033[0m\n" -- cgit v1.2.3