Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
989c6f7c
Commit
989c6f7c
authored
Apr 02, 2008
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install fedora stuff on CentOS for now.
parent
a88d516e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
tmcd/GNUmakefile.in
tmcd/GNUmakefile.in
+3
-0
utils/osstuff.sh
utils/osstuff.sh
+13
-7
No files found.
tmcd/GNUmakefile.in
View file @
989c6f7c
...
@@ -72,6 +72,9 @@ endif
...
@@ -72,6 +72,9 @@ endif
ifeq ($(findstring fedora,$(MDSUBDIR)),fedora)
ifeq ($(findstring fedora,$(MDSUBDIR)),fedora)
MDSUBDIR = fedora
MDSUBDIR = fedora
endif
endif
ifeq ($(findstring centos,$(MDSUBDIR)),centos)
MDSUBDIR = fedora
endif
ifeq ($(MDSUBDIR),stargate1)
ifeq ($(MDSUBDIR),stargate1)
MDSUBDIR = linux-sg
MDSUBDIR = linux-sg
endif
endif
...
...
utils/osstuff.sh
View file @
989c6f7c
...
@@ -30,14 +30,20 @@ Linux)
...
@@ -30,14 +30,20 @@ Linux)
rel
=
`
grep
DISTRIB_RELEASE /etc/lsb-release |
awk
-F
=
'{ print $2; }'
`
rel
=
`
grep
DISTRIB_RELEASE /etc/lsb-release |
awk
-F
=
'{ print $2; }'
`
fi
fi
if
[
-z
"
$dist
"
-a
-r
/etc/redhat-release
]
;
then
if
[
-z
"
$dist
"
-a
-r
/etc/redhat-release
]
;
then
rel
=
`
grep
'Red Hat'
/etc/redhat-release |
sed
-e
's/Red Hat Linux release \([0-9]\(\.[0-9]\)\?\).*/\1/'
`
t
rel
=
`
grep
'Red Hat'
/etc/redhat-release |
sed
-e
's/Red Hat Linux release \([0-9]\(\.[0-9]\)\?\).*/\1/'
`
if
[
-n
"
$rel
"
]
;
then
if
[
-n
"
$
t
rel
"
]
;
then
dist
=
"Redhat"
dist
=
"Redhat"
else
rel
=
$trel
rel
=
`
grep
'Fedora'
/etc/redhat-release |
sed
-e
's/Fedora .*release \([0-9]\).*/\1/'
`
fi
if
[
-n
"
$rel
"
]
;
then
trel
=
`
grep
'Fedora'
/etc/redhat-release |
sed
-e
's/Fedora .*release \([0-9.]\+\).*/\1/'
`
dist
=
"Fedora"
if
[
-n
"
$trel
"
]
;
then
fi
dist
=
"Fedora"
rel
=
$trel
fi
trel
=
`
grep
'CentOS'
/etc/redhat-release |
sed
-e
's/CentOS .*release \([0-9.]\+\).*/\1/'
`
if
[
-n
"
$trel
"
]
;
then
dist
=
"CentOS"
rel
=
$trel
fi
fi
fi
fi
# XXX hack check for stargate
# XXX hack check for stargate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment