summaryrefslogtreecommitdiff
path: root/slackware-bootstrap
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-06-16 06:08:12 +0200
committernavewindre <boneyaard@gmail.com>2025-06-16 06:08:12 +0200
commitaffce71168872c1f13c509347cc4b29097039643 (patch)
tree20254781e9421008de0e75a1c9c7998496bc5bae /slackware-bootstrap
parent66337b64c168637221db91bc5e9ecb8491288086 (diff)
update
Diffstat (limited to 'slackware-bootstrap')
-rwxr-xr-xslackware-bootstrap/slackpkg19
-rwxr-xr-xslackware-bootstrap/user1
2 files changed, 20 insertions, 0 deletions
diff --git a/slackware-bootstrap/slackpkg b/slackware-bootstrap/slackpkg
index b6af825..20f32e2 100755
--- a/slackware-bootstrap/slackpkg
+++ b/slackware-bootstrap/slackpkg
@@ -8,6 +8,7 @@ echo "for the package manager."
echo "please uncomment a mirror from a location near you,"
echo "by removing the '#' from the beginning of the line."
printf "\x1b[16;32mONLY CHOOSE ONE MIRROR !\n\x1b[0;0m"
+printf "\x1b[16;32mDO NOT CHOOSE A -CURRENT MIRROR NOW !\n\x1b[0;0m"
echo "you can save the file by pressing ctrl+x."
printf "\x1b[1;31m================================================================\n\x1b[0;0m"
@@ -28,3 +29,21 @@ slackpkg upgrade-all
cp $basedir/slackpkg-blacklist /etc/slackpkg/blacklist
slackpkg update
slackpkg install-new
+
+
+echo "================= [ system branch ] ==============="
+echo "if you would like, you can now exit the mirrors"
+echo "and switch to -current. if not, simply press ctrl+x"
+echo "==================================================="
+
+read -p "press enter to continue"
+nano /etc/slackpkg/mirrors
+slackpkg update
+
+echo "would you like to perform a system update now?"
+read -p "enter your choice [y/n]: " choice
+if [[ $choice == 'y' ]]; then
+ echo "running full system update ..."
+ slackpkg upgrade-all
+ slackpkg install-new
+fi
diff --git a/slackware-bootstrap/user b/slackware-bootstrap/user
index 320c229..9eafbb8 100755
--- a/slackware-bootstrap/user
+++ b/slackware-bootstrap/user
@@ -6,6 +6,7 @@ if [[ $1 != '' ]]; then
fi
useradd $user
+mkdir -p /home/$user
echo "created user $user"
passwd $user