diff options
| author | navewindre <boneyaard@gmail.com> | 2025-06-18 07:43:51 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2025-06-18 07:43:51 +0200 |
| commit | 6c61d7084354f382428c3bd3dd16a499eb7e746b (patch) | |
| tree | aca51b42353847ec84294e3fb54a9b72d68a79b9 /slackware-bootstrap/bootstrap | |
| parent | aaf1d894aeaf71743cdec8e7e7c1c177076a80af (diff) | |
a
Diffstat (limited to 'slackware-bootstrap/bootstrap')
| -rwxr-xr-x | slackware-bootstrap/bootstrap | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/slackware-bootstrap/bootstrap b/slackware-bootstrap/bootstrap index 4ff4dd2..5cbe5f7 100755 --- a/slackware-bootstrap/bootstrap +++ b/slackware-bootstrap/bootstrap @@ -2,7 +2,6 @@ basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) username="user" -kernelver="6.15.2" hasuser=0 while getopts u:a:f: flag @@ -25,52 +24,4 @@ echo "working dir: $basedir" sh $basedir/user $username sh $basedir/sudo -sh $basedir/slackpkg -sh $basedir/slpkg -sh $basedir/multilib - -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 - -read -p "do you want to update your kernel [y/n]? (y):" choice -if [[ $choice == "y" ]]; then - nreboot=1 - echo "sh $basedir/kernel" >> /root/.bashrc -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 - echo "sh $basedir/nvidia-driver" >> /root/.bashrc -fi - -if [[ $nreboot == 1 ]]; then - echo "sh $basedir/finish" >> /root/.bashrc - echo "rm -f /root/.bashrc" >> /root/.bashrc - echo "============================ [ reboot ] ===========================" - printf "\x1b[1;31mupon reboot, make sure to log in as ROOT first !!!\x1b[0;0m\n" - echo "===================================================================" - read -p "press enter to reboot your system" - echo "rebooting..." - reboot -else - sh $basedir/runlevel - - echo "============== [ setup done ] ===============" - echo "username: $username" - echo "you may now log into your user account." - echo "it is recommended to reboot your system now." - echo "==============================================" -fi +sh $basedir/step1 |
