From ca04f1b1126175f1f0ddfe66c99e36f3584dd4a0 Mon Sep 17 00:00:00 2001 From: Zeno Zeng Date: Tue, 30 Sep 2014 21:26:38 +0800 Subject: [PATCH] add --version, fixes #38 --- build/build.sh | 2 +- build/debian/build.sh | 2 +- build/openwrt/build.sh | 2 +- lib/zjunet.sh | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build/build.sh b/build/build.sh index ddc6d5c..c2a7424 100755 --- a/build/build.sh +++ b/build/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=0.1.0-7 +VERSION=0.1.0-8 cd debian ./build.sh $VERSION > /dev/null diff --git a/build/debian/build.sh b/build/debian/build.sh index ae4c125..b711c8f 100755 --- a/build/debian/build.sh +++ b/build/debian/build.sh @@ -21,7 +21,7 @@ Version: $VERSION Section: net Priority: optional Architecture: all -Depends: xl2tpd (>= 1.3.1), curl +Depends: xl2tpd, curl Maintainer: Zeno Zeng Description: Command Line Scripts for ZJU This script provides a VPN / WLAN / NEXTHOP for ZJUer. diff --git a/build/openwrt/build.sh b/build/openwrt/build.sh index d1e1646..1c7901d 100755 --- a/build/openwrt/build.sh +++ b/build/openwrt/build.sh @@ -21,7 +21,7 @@ Version: $VERSION Section: net Priority: optional Architecture: all -Depends: xl2tpd (>= 1.3.1), curl +Depends: xl2tpd, curl Maintainer: Zeno Zeng Description: Command Line Scripts for ZJU This script provides a VPN / WLAN / NEXTHOP for ZJUer. diff --git a/lib/zjunet.sh b/lib/zjunet.sh index a4117be..623b047 100755 --- a/lib/zjunet.sh +++ b/lib/zjunet.sh @@ -40,6 +40,9 @@ case "$1" in dns) "${BASEDIR}/dns.sh" ;; + --version) + echo "zjunet version: zjunet-0.1.0" + ;; *) cat <