Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
5ff568d5
Commit
5ff568d5
authored
Oct 29, 2013
by
Nikos Skalkotos
Browse files
Add code for detecting NetBSD's in get_distro
parent
f80d3498
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/common.sh
View file @
5ff568d5
...
...
@@ -193,6 +193,12 @@ get_base_distro() {
echo
"arch"
elif
[
-e
"
$root_dir
/etc/freebsd-update.conf"
]
;
then
echo
"freebsd"
elif
[
-e
"
$root_dir
/etc/release"
]
;
then
if
grep
-in
netbsd
"
$root_dir
/etc/release"
&> /dev/null
;
then
echo
"netbsd"
else
warn
"Unknown Unix flavor."
fi
else
warn
"Unknown base distro."
fi
...
...
@@ -227,6 +233,12 @@ get_distro() {
echo
"arch"
elif
[
-e
"
$root_dir
/etc/freebsd-update.conf"
]
;
then
echo
"freebsd"
elif
[
-e
"
$root_dir
/etc/release"
]
;
then
if
grep
-in
netbsd
"
$root_dir
/etc/release"
&> /dev/null
;
then
echo
"netbsd"
else
warn
"Unknown Unix flavor"
fi
else
warn
"Unknown distro."
fi
...
...
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