Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
115a00ee
Commit
115a00ee
authored
Feb 16, 2006
by
Robert Ricci
Browse files
Make a few things work on FreeBSD.
parent
f28438af
Changes
1
Hide whitespace changes
Inline
Side-by-side
pelab/common-env.sh
View file @
115a00ee
...
...
@@ -10,6 +10,23 @@
if
[
"
$COMMON_ENV_LOADED
"
!=
"yes"
]
;
then
COMMON_ENV_LOADED
=
"yes"
#
# Find out the OS we're running on
#
UNAME
=
`
uname
-s
`
#
# Different binary directories for FreeBSD/Linux
#
if
[
"
$UNAME
"
==
"Linux"
]
;
then
BIN_PATH
=
"/usr/bin"
elif
[
"
$UNAME
"
==
"FreeBSD"
]
;
then
BIN_PATH
=
"/usr/local/bin"
else
echo
"Unable to determine operating system"
exit
-1
fi
#
# Locations of some Emulab-specific files
#
...
...
@@ -19,9 +36,9 @@ NICKFILE="$EMUBOOT/nickname"
RCPLAB
=
"
$EMUBOOT
/rc.plab"
HOSTSFILE
=
"/etc/hosts"
IFCONFIG
=
"/sbin/ifconfig"
PERL
=
"
/usr/bin
/perl"
PYTHON
=
"
/usr/bin
/python"
SUDO
=
"
/usr/bin
/sudo"
PERL
=
"
${
BIN_PATH
}
/perl"
PYTHON
=
"
${
BIN_PATH
}
/python"
SUDO
=
"
${
BIN_PATH
}
/sudo"
#
# Some 'constants' by convention.
...
...
Write
Preview
Supports
Markdown
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