aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipsec
diff options
context:
space:
mode:
authorRiaan Kruger <riaank@gmail.com>2011-08-23 07:54:15 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-08-23 07:54:15 +0200
commit2fee7bfe87292d962fe8b9871c8a642017d184df (patch)
tree65487962ae5978cdb4eb557dfc579b6efadbccf7 /src/ipsec
parent3f455c739d0667e7dfb799fae71ca8bc3e8cae0f (diff)
downloadstrongswan-2fee7bfe87292d962fe8b9871c8a642017d184df.tar.bz2
strongswan-2fee7bfe87292d962fe8b9871c8a642017d184df.tar.xz
auto-detect OS name
Diffstat (limited to 'src/ipsec')
-rwxr-xr-xsrc/ipsec/ipsec.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipsec/ipsec.in b/src/ipsec/ipsec.in
index 9ab25ba28..a501463df 100755
--- a/src/ipsec/ipsec.in
+++ b/src/ipsec/ipsec.in
@@ -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