home · contact · privacy
74efe1ccee7ee7cb74264af6e09ea444e215560b
[config] / buster / setup_scripts / setup_eeepc.sh
1 #!/bin/sh
2 set -e
3
4 if [ "$#" -ne 1 ]; then
5     echo 'Need exactly one argument (hostname).'
6     false
7 fi
8 hostname="$1"
9
10 config_tree_prefix="${HOME}/config/buster"
11 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
12 cd "${setup_scripts_dir}"
13 ./setup.sh "${hostname}" ""
14 ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" eeepc
15 ./install_for_target.sh eeepc
16
17 if [ ! -d "/home/plom" ]; then
18     adduser --disabled-password --gecos "" plom
19     usermod -a -G sudo plom
20     su -c "cd && git clone https://plomlompom.com/repos/clone/config" plom
21     su -c "~/config/buster/setup_scripts/copy_dirtree.sh ~/config/buster/home_files ~ eeepc" plom
22     su -c "echo 2 > ~/.shell_prompt_color" plom
23 fi