blob: 1fcbc5ccc466f658a6852705ece00752a44d7925 (
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
|
#!/bin/bash
basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
username="user"
while getopts u:a:f: flag
do
case "${flag}" in
u) username=${OPTARG};;
esac
done
echo "working dir: $basedir"
sh $basedir/user
sh $basedir/sudo
sh $basedir/slackpkg
sh $basedir/slpkg
sh $basedir/multilib
echo "============== [ setup done ] ==============="
echo "username: $username"
echo "it's recommended to reboot your system."
echo "upon reboot you can sign in with your new user"
echo "=============================================="
read -p "press enter to return to shell"
|