update debian packaging, install init script
@@ -0,0 +1 @@
+9
@@ -2,7 +2,7 @@ Source: softether-vpn
Section: net
Priority: optional
Maintainer: Dmitry Orlov <[email protected]>
-Build-Depends: debhelper (>= 7.0.50~), libncurses-dev, linux-libc-dev, libssl-dev, libreadline-dev, build-essential
+Build-Depends: debhelper (>= 7.0.50~), libncurses-dev, linux-libc-dev, libssl-dev, libreadline-dev, build-essential, dh-exec
Standards-Version: 3.9.1
Homepage: http://www.softether.org/
@@ -1,2 +1,3 @@
+#! /usr/bin/dh-exec
debian/bin/vpnbridge usr/bin/
usr/vpnbridge opt/
debian/bin/vpnclient usr/bin/
usr/vpnclient opt/
debian/bin/vpncmd usr/bin/
usr/vpncmd opt/
@@ -26,12 +26,12 @@ test -x $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
- $DAEMON -start
+ $DAEMON start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
- $DAEMON -stop
+ $DAEMON stop
#reload)
@@ -54,9 +54,9 @@ case "$1" in
# just the same as "restart".
#
echo -n "Restarting $DESC: $NAME"
sleep 1
*)
debian/bin/vpnserver usr/bin/
usr/vpnserver opt/