-
Notifications
You must be signed in to change notification settings - Fork 71
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 1 commit
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 |
---|---|---|
|
@@ -30,6 +30,21 @@ apt-get install -y iverilog gtkwave | |
# Nothing needed | ||
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 whole script is designed to be run as root. Maybe it should check that it is running as root and suggest using sudo otherwise? |
||
|
||
# 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. |
||
while true; do | ||
read -p "Are you working under a proxy server? (yes/no) " yn | ||
case $yn in | ||
[Yy]* ) echo "Enter the proxy site and port number" | ||
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. The indenting here is weird. |
||
read -p "Enter the proxy adress : " siteproxy | ||
read -p "Enter port number : " portnumber | ||
export http_proxy=http://$siteproxy:$portnumber | ||
export https_proxy=https://$siteproxy:$portnumber | ||
break;; | ||
[Nn]* ) break;; | ||
* ) echo "Please answer yes or no.";; | ||
esac | ||
done | ||
|
||
sudo apt-get install -y libreadline-dev libusb-1.0-0-dev libftdi-dev python-yaml fxload | ||
|
||
# Load custom udev rules | ||
|
@@ -40,7 +55,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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#!/bin/sh | ||
|
||
if [ "`whoami`" = "root" ] | ||
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 one shouldn't matter running as root. |
||
then | ||
echo "Running the script as root. Not permitted" | ||
exit 1 | ||
fi | ||
|
||
I=0 | ||
while true; do | ||
echo | ||
|
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.
Probably better to say
Running the script as root is not permitted.