File tree 5 files changed +35
-4
lines changed
5 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [ " ` whoami` " = " root" ]
4
+ then
5
+ echo " Running the script as root is not permitted"
6
+ exit 1
7
+ fi
8
+
3
9
GIT_REPO=https://github.com/timvideos/HDMI2USB-misoc-firmware.git
4
10
if [ -z " $GIT_BRANCH " ]; then
5
11
GIT_BRANCH=master
@@ -19,8 +25,8 @@ if ! git help > /dev/null 2>&1; then
19
25
fi
20
26
21
27
if [ -e HDMI2USB-misoc-firmware ]; then
22
- cd HDMI2USB-misoc-firmware
23
- git pull || exit 1
28
+ echo " Existing checkout found (see HDMI2USB-misoc-firmware directory), please remove before running. "
29
+ exit 1
24
30
else
25
31
git clone --recurse-submodules $GIT_REPO || exit 1
26
32
cd HDMI2USB-misoc-firmware
30
36
yn=y
31
37
# read -p "Need to install packages as root. Continue? (y/n) " yn
32
38
if [ " $yn " = " y" -o " $yn " = " Y" -o -z " $yn " ]; then
33
- sudo ./scripts/get-env-root.sh || exit 1
39
+ sudo -E ./scripts/get-env-root.sh || exit 1
34
40
else
35
41
echo " Aborting.."
36
42
exit 1
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [ " ` whoami` " = " root" ]
4
+ then
5
+ echo " Running the script as root is not permitted"
6
+ exit 1
7
+ fi
8
+
3
9
set -e
4
10
5
11
SETUP_SRC=$( realpath ${BASH_SOURCE[@]} )
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [ " ` whoami` " != " root" ]
4
+ then
5
+ echo " Please use sudo to run this script!"
6
+ exit 1
7
+ fi
8
+
3
9
SETUP_SRC=$( realpath ${BASH_SOURCE[0]} )
4
10
SETUP_DIR=$( dirname $SETUP_SRC )
5
11
@@ -30,6 +36,7 @@ apt-get install -y iverilog gtkwave
30
36
# Nothing needed
31
37
32
38
# libfpgalink
39
+
33
40
sudo apt-get install -y libreadline-dev libusb-1.0-0-dev libftdi-dev python-yaml fxload
34
41
35
42
# Load custom udev rules
@@ -40,7 +47,7 @@ sudo apt-get install -y libreadline-dev libusb-1.0-0-dev libftdi-dev python-yaml
40
47
41
48
# Get the vizzini module needed for the Atlys board
42
49
sudo apt-get install -y software-properties-common
43
- sudo add-apt-repository -y ppa:timvideos/fpga-support
50
+ sudo -E add-apt-repository -y ppa:timvideos/fpga-support
44
51
sudo apt-get update
45
52
sudo apt-get install -y vizzini-dkms
46
53
sudo apt-get install -y ixo-usb-jtag
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [ " ` whoami` " = " root" ]
4
+ then
5
+ echo " Running the script as root is not permitted"
6
+ exit 1
7
+ fi
8
+
3
9
CALLED=$_
4
10
[[ " ${BASH_SOURCE[0]} " != " ${0} " ]] && SOURCED=1 || SOURCED=0
5
11
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [ " ` whoami` " = " root" ]
4
+ then
5
+ echo " Running the script as root is not permitted"
6
+ exit 1
7
+ fi
8
+
3
9
CALLED=$_
4
10
[[ " ${BASH_SOURCE[0]} " != " ${0} " ]] && SOURCED=1 || SOURCED=0
5
11
You can’t perform that action at this time.
0 commit comments