summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-03-03 17:25:28 +0000
committerRoy Marples <roy@marples.name>2014-03-03 17:25:28 +0000
commitb3574a2516b8b52c50bfb289a2631b25c744295b (patch)
tree21912e1ac6b0e17ead6d539eb6a255abccc3aa5a /configure
parentb1a6a84ba336a1608a27107b16c9ed0e9c417c81 (diff)
downloaddhcpcd-b3574a2516b8b52c50bfb289a2631b25c744295b.tar.xz
Just make the configure a bit easier.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 9 insertions, 15 deletions
diff --git a/configure b/configure
index 52ce5b0d..7fb300b0 100755
--- a/configure
+++ b/configure
@@ -203,16 +203,8 @@ if [ -z "$OS" ]; then
VENDOR=${REST%%-*}
REST=${REST#*-}
if [ "$VENDOR" != "$REST" ]; then
- KERNEL=${REST%%-*}
- REST=${REST#*-}
- if [ "$KERNEL" != "$REST" ]; then
- # 4 tupple
- OS=${REST%%-*}
- else
- # 3 tupple
- OS=$KERNEL
- KERNEL=
- fi
+ # Use kernel if given, otherwise os
+ OS=${REST%%-*}
else
# 2 tupple
OS=$VENDOR
@@ -221,11 +213,13 @@ if [ -z "$OS" ]; then
fi
# Work with cpu-kernel-os, ie Debian
- if [ "$VENDOR" = linux ]; then
- KERNEL=$OS
- OS=linux
- VENDOR=
- fi
+ case "$VENDOR" in
+ linux|kfreebsd) OS=$VENDOR; VENDOR= ;;
+ esac
+ # Special case
+ case "$OS" in
+ gnu) OS=hurd;; # No HURD support as yet
+ esac
fi
echo "Configuring dhcpcd for ... $OS"