mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-15 00:00:16 -04:00
auto-detect OS name
This commit is contained in:
parent
3f455c739d
commit
2fee7bfe87
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user