auto-detect OS name
authorRiaan Kruger <riaank@gmail.com>
Tue, 23 Aug 2011 05:54:15 +0000 (07:54 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 23 Aug 2011 05:54:15 +0000 (07:54 +0200)
src/ipsec/ipsec.in

index 9ab25ba..a501463 100755 (executable)
@@ -19,6 +19,7 @@ PATH="/sbin:/bin:/usr/sbin:/usr/bin:@IPSEC_SBINDIR@"
 export PATH
 
 # name and version of the ipsec implementation
+OS_NAME=`uname -s`
 IPSEC_NAME="@IPSEC_NAME@"
 IPSEC_VERSION="U@IPSEC_VERSION@/K`uname -r`"
 
@@ -378,7 +379,7 @@ update)
        fi
        ;;
 version|--version)
-       printf "Linux $IPSEC_NAME $IPSEC_VERSION\n"
+       printf "$OS_NAME $IPSEC_NAME $IPSEC_VERSION\n"
        printf "$IPSEC_DISTRO\n"
        printf "See 'ipsec --copyright' for copyright information.\n"
        exit 0