]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Just make the configure a bit easier.
authorRoy Marples <roy@marples.name>
Mon, 3 Mar 2014 17:25:28 +0000 (17:25 +0000)
committerRoy Marples <roy@marples.name>
Mon, 3 Mar 2014 17:25:28 +0000 (17:25 +0000)
configure

index 52ce5b0d0753b3674e1b95379aedf1a702e47d9b..7fb300b0ceb1ffd543764bcd60ec006ce9f28bf6 100755 (executable)
--- 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"