summaryrefslogtreecommitdiff
path: root/slackware-bootstrap/step1
blob: d48abac7fb647295f87b9a56a40e45c06503b747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

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"
echo "your system will now reboot, after reboot make sure to"
printf "SIGN IN \x1b[1;31mAS ROOT\x1b[0m !!!\n"
echo "========================================================"
read -p "press enter to reboot"
reboot