-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup_modraspi.sh
executable file
·49 lines (46 loc) · 1.69 KB
/
setup_modraspi.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#******************************************************************************
# ZYNTHIAN PROJECT: MOD-RASPI Standalone Setup Script
#
# Setup MOD-UI on a Raspi from scratch in a completely fresh minibian-jessie
# image.
# No need for nothing else. Only run the script twice, following the next
# instructions:
#
# 1. Run first time: ./setup_modraspi.sh
# 2. Reboot: It should reboot automaticly after step 1
# 3. Run second time: ./setup_raspi.sh
# 4. Take a good beer, sit down and relax ... ;-)
#
# Copyright (C) Holger Wirtz <dcoredump@googlemail.com>
#
#******************************************************************************
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# For a full copy of the GNU General Public License see the LICENSE.txt file.
#
#******************************************************************************
if [ ! -d "/zynthian/zynthian-recipe" ]; then
mkdir /zynthian
apt-get update
apt-get -y install apt-utils
apt-get -y install sudo git parted screen
cd /zynthian
git clone https://github.com/dcoredump/zynthian-recipe.git
fi
cd /zynthian/zynthian-recipe
if [ "$1" = "wiggle" ] || [ ! -f ~/.wiggled ]; then
echo `date` > ~/.wiggled
./rpi-wiggle.sh
else
./setup_system_modraspi.sh
fi