diff options
| author | Roy Marples <roy@marples.name> | 2014-03-03 17:25:28 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-03-03 17:25:28 +0000 |
| commit | b3574a2516b8b52c50bfb289a2631b25c744295b (patch) | |
| tree | 21912e1ac6b0e17ead6d539eb6a255abccc3aa5a /configure | |
| parent | b1a6a84ba336a1608a27107b16c9ed0e9c417c81 (diff) | |
| download | dhcpcd-b3574a2516b8b52c50bfb289a2631b25c744295b.tar.xz | |
Just make the configure a bit easier.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -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" |
