std/python: Add missing trailing comma + `make format`
[sunny256-utils.git] / livecd-init
blob4ace319d331014805618c94f7d7bcdb09d45a8ce
1 #!/usr/bin/env bash
3 # livecd-init
4 # File ID: 49d2c2ba-2402-11e4-9039-fefdb24f8e10
6 setxkbmap no
7 if test -d "/home/knoppix"; then
8 sudo apt-get update
9 sudo apt-get install flashplugin-nonfree ntpdate tmux uuid
10 elif test -d "/home/mint"; then
11 sudo apt-get update
12 sudo apt-get install git tmux uuid vim
13 elif test -d "/home/ubuntu"; then
14 gconftool-2 --set /apps/metacity/general/button_layout --type string menu:minimize,maximize,close
15 gconftool-2 --set /apps/update-notifier/auto_launch --type bool false
16 sudo apt-get update
17 sudo apt-get install flashplugin-nonfree || { echo Du må redigere /etc/apt/sources.list >&2; exit 1; }
18 sudo apt-get install vim git-core uuid
20 sudo ntpdate pool.ntp.org
21 sudo service ntp start
22 cd || { echo Could not chdir to $HOME >&2; exit 1; }
23 mkdir -p src/git
24 cd src/git || { echo src/git: chdir error >&2; exit 1; }
25 export GR=sunny@sunbase.org:/home/sunny/repos/Git
26 git clone -o sunbase --recursive $GR/home-sunny.git
27 git clone -o sunbase --recursive $GR/utils.git
29 ln -sv src/git/utils bin
30 ln -svf src/git/home-sunny/.* .
31 ln -svf src/git/home-sunny/* .
32 rm .gitignore .git
33 rm -rf .config/mc
34 ln -sv ../src/git/home-sunny/.config/mc .config/mc
35 git clone -b livecd-uuids -o sunbase $GR/livecd-uuids.git uuids
36 git clone -o sunbase $GR/comp-livecd.git
37 mv comp-livecd/.git .
38 rm -rf comp-livecd
39 git checkout -f
40 chmod 600 ~/.ssh/id_rsa
41 ntpdate -q pool.ntp.org