-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes issue #238 and #239 #244
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#!/bin/bash | ||
|
||
if [ "`whoami`" != "root" ] | ||
then | ||
echo "Please use sudo to run this script!" | ||
exit 1 | ||
fi | ||
|
||
SETUP_SRC=$(realpath ${BASH_SOURCE[0]}) | ||
SETUP_DIR=$(dirname $SETUP_SRC) | ||
|
||
|
@@ -30,6 +36,7 @@ apt-get install -y iverilog gtkwave | |
# Nothing needed | ||
|
||
# libfpgalink | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This script should not be interactive. Could this be in bootstrap.sh instead? Shouldn't http_proxy and https_proxy already be set in your environment? Does the "sudo -E" above fix the problem? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If they are already set in my environment sudo -E will fix the problem. If we assume that proxy variables are already set then we dont need to prompt for proxy. |
||
sudo apt-get install -y libreadline-dev libusb-1.0-0-dev libftdi-dev python-yaml fxload | ||
|
||
# Load custom udev rules | ||
|
@@ -40,7 +47,7 @@ sudo apt-get install -y libreadline-dev libusb-1.0-0-dev libftdi-dev python-yaml | |
|
||
# Get the vizzini module needed for the Atlys board | ||
sudo apt-get install -y software-properties-common | ||
sudo add-apt-repository -y ppa:timvideos/fpga-support | ||
sudo -E add-apt-repository -y ppa:timvideos/fpga-support | ||
sudo apt-get update | ||
sudo apt-get install -y vizzini-dkms | ||
sudo apt-get install -y ixo-usb-jtag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole script is designed to be run as root.
Maybe it should check that it is running as root and suggest using sudo otherwise?