summaryrefslogtreecommitdiff
path: root/slackware-bootstrap/step2-finish
blob: 595f5a3b0ef3a628c3e2e7f3310498f355ee4a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

if [[ -f "~/.nreboot" ]]; then
  echo "sh $basedir/finish" >> /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 "==================================================================="
  read -p "press enter to reboot your system"
  echo "rebooting..."
  reboot
else
  sh $basedir/runlevel
  sh $basedir/cleanup

  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