Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
b47aa5da
Commit
b47aa5da
authored
9 years ago
by
lantz
Browse files
Options
Downloads
Plain Diff
Merge pull request #558 from bregman-arie/master
Update install.sh to support RedHat distrubtion
parents
af0215fb
0c2fbaf1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/install.sh
+10
-9
10 additions, 9 deletions
util/install.sh
with
10 additions
and
9 deletions
util/install.sh
+
10
−
9
View file @
b47aa5da
...
...
@@ -45,7 +45,8 @@ if [ "$DIST" = "Ubuntu" ] || [ "$DIST" = "Debian" ]; then
fi
fi
test
-e
/etc/fedora-release
&&
DIST
=
"Fedora"
if
[
"
$DIST
"
=
"Fedora"
]
;
then
test
-e
/etc/redhat-release
&&
DIST
=
"RedHatEnterpriseServer"
if
[
"
$DIST
"
=
"Fedora"
-o
"
$DIST
"
=
"RedHatEnterpriseServer"
]
;
then
install
=
'sudo yum -y install'
remove
=
'sudo yum -y erase'
pkginst
=
'sudo rpm -ivh'
...
...
@@ -66,8 +67,8 @@ echo "Detected Linux distribution: $DIST $RELEASE $CODENAME $ARCH"
KERNEL_NAME
=
`
uname
-r
`
KERNEL_HEADERS
=
kernel-headers-
${
KERNEL_NAME
}
if
!
echo
$DIST
| egrep
'Ubuntu|Debian|Fedora'
;
then
echo
"Install.sh currently only supports Ubuntu, Debian and Fedora."
if
!
echo
$DIST
| egrep
'Ubuntu|Debian|Fedora
|RedHatEnterpriseServer
'
;
then
echo
"Install.sh currently only supports Ubuntu, Debian
, RedHat
and Fedora."
exit
1
fi
...
...
@@ -123,7 +124,7 @@ function kernel_clean {
# Install Mininet deps
function
mn_deps
{
echo
"Installing Mininet dependencies"
if
[
"
$DIST
"
=
"Fedora"
]
;
then
if
[
"
$DIST
"
=
"Fedora"
-o
"
$DIST
"
=
"RedHatEnterpriseServer"
]
;
then
$install
gcc make socat psmisc xterm openssh-clients iperf
\
iproute telnet python-setuptools libcgroup-tools
\
ethtool help2man pyflakes pylint python-pep8
...
...
@@ -156,7 +157,7 @@ function of {
echo
"Installing OpenFlow reference implementation..."
cd
$BUILD_DIR
$install
autoconf automake libtool make gcc
if
[
"
$DIST
"
=
"Fedora"
]
;
then
if
[
"
$DIST
"
=
"Fedora"
-o
"
$DIST
"
=
"RedHatEnterpriseServer"
]
;
then
$install
git pkgconfig glibc-devel
else
$install
git-core autotools-dev pkg-config libc6-dev
...
...
@@ -224,7 +225,7 @@ function of13 {
function
install_wireshark
{
if
!
which wireshark
;
then
echo
"Installing Wireshark"
if
[
"
$DIST
"
=
"Fedora"
]
;
then
if
[
"
$DIST
"
=
"Fedora"
-o
"
$DIST
"
=
"RedHatEnterpriseServer"
]
;
then
$install
wireshark wireshark-gnome
else
$install
wireshark tshark
...
...
@@ -334,7 +335,7 @@ function ubuntuOvs {
function
ovs
{
echo
"Installing Open vSwitch..."
if
[
"
$DIST
"
=
=
"Fedora"
]
;
then
if
[
"
$DIST
"
=
"Fedora"
-o
"
$DIST
"
=
"RedHatEnterpriseServer"
]
;
then
$install
openvswitch openvswitch-controller
return
fi
...
...
@@ -546,7 +547,7 @@ function oftest {
function
cbench
{
echo
"Installing cbench..."
if
[
"
$DIST
"
=
"Fedora"
]
;
then
if
[
"
$DIST
"
=
"Fedora"
-o
"
$DIST
"
=
"RedHatEnterpriseServer"
]
;
then
$install
net-snmp-devel libpcap-devel libconfig-devel
else
$install
libsnmp-dev libpcap-dev libconfig-dev
...
...
@@ -616,7 +617,7 @@ net.ipv6.conf.lo.disable_ipv6 = 1' | sudo tee -a /etc/sysctl.conf > /dev/null
$install
ntp
# Install vconfig for VLAN example
if
[
"
$DIST
"
=
"Fedora"
]
;
then
if
[
"
$DIST
"
=
"Fedora"
-o
"
$DIST
"
=
"RedHatEnterpriseServer"
]
;
then
$install
vconfig
else
$install
vlan
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment