mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge branch 'openvpn-handle' of https://github.com/holta/iiab
This commit is contained in:
commit
3865e16c95
1 changed files with 3 additions and 2 deletions
|
@ -18,11 +18,12 @@ if [ -f /etc/iiab/uuid ]; then
|
||||||
UUID=`cat /etc/iiab/uuid`
|
UUID=`cat /etc/iiab/uuid`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# start the daemon which will serve the handle on demand
|
|
||||||
SERVER=/usr/bin/ncat
|
SERVER=/usr/bin/ncat
|
||||||
ID=`printf "HANDLE = %s|UUID = %s" $HANDLE $UUID`
|
ID=`printf "HANDLE = %s|UUID = %s" $HANDLE $UUID`
|
||||||
{% if is_debuntu %}
|
|
||||||
#ID=`printf "HANDLE = %s|UUID = %s|" $HANDLE $UUID`
|
#ID=`printf "HANDLE = %s|UUID = %s|" $HANDLE $UUID`
|
||||||
|
|
||||||
|
# start the daemon which will serve the handle on demand
|
||||||
|
{% if is_debuntu %}
|
||||||
$SERVER -l -k -p1705 --exec "/bin/echo $ID" &
|
$SERVER -l -k -p1705 --exec "/bin/echo $ID" &
|
||||||
{% else %}
|
{% else %}
|
||||||
source /etc/init.d/functions
|
source /etc/init.d/functions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue