./ 0000755 0001751 0000171 00000000000 14111461773 010557 5 ustar runner docker ./.scripts/ 0000755 0001751 0000171 00000000000 14111461773 012324 5 ustar runner docker ./.scripts/after_remove 0000755 0001751 0000171 00000000070 14111461773 014725 0 ustar runner docker #!/bin/bash
set -euo pipefail
rm -fr /var/lib/husarnet
./.scripts/after_install 0000755 0001751 0000171 00000004702 14111461773 015104 0 ustar runner docker #!/bin/bash
set -euo pipefail
# Check whether system is *running* systemd
pidof -q systemd || false
if [ ! $? -eq 0 ]; then
echo "No systemd running in the system. Will not install start scripts."
exit 0
fi
systemctl daemon-reload
systemctl enable husarnet
echo '
# husarnet() completion -*- shell-script -*-
_husarnet_completions()
{
if [ "${#COMP_WORDS[@]}" != "2" ]; then
if [ "${#COMP_WORDS[@]}" == "3" ]; then
if [ "${COMP_WORDS[1]}" == "whitelist" ]; then
COMPREPLY=($(compgen -W "add rm enable disable ls" "${COMP_WORDS[2]}"))
fi
if [ "${COMP_WORDS[1]}" == "host" ]; then
COMPREPLY=($(compgen -W "add rm" "${COMP_WORDS[2]}"))
fi
if [ "${COMP_WORDS[1]}" == "setup-server" ]; then
COMPREPLY=($(compgen -W "
"))
fi
if [ "${COMP_WORDS[1]}" == "join" ]; then
COMPREPLY=($(compgen -W ""))
fi
fi
if [ "${#COMP_WORDS[@]}" == "4" ]; then
if [ "${COMP_WORDS[1]}" == "whitelist" ] && [ "${COMP_WORDS[2]}" == "add" ] ; then
COMPREPLY=($(compgen -W ""))
fi
if [ "${COMP_WORDS[1]}" == "whitelist" ] && [ "${COMP_WORDS[2]}" == "disable" ] ; then
COMPREPLY=($(compgen -W "--noinput"))
fi
if [ "${COMP_WORDS[1]}" == "whitelist" ] && [ "${COMP_WORDS[2]}" == "rm" ] ; then
COMPREPLY=($(compgen -W ""))
fi
if [ "${COMP_WORDS[1]}" == "host" ]; then
COMPREPLY=($(compgen -W "" ))
COMPREPLY="${COMPREPLY}"" "$(compgen -W "" )
fi
if [ "${COMP_WORDS[1]}" == "join" ]; then
COMPREPLY=($(compgen -W "" ))
fi
fi
return
fi
COMPREPLY=($(compgen -W "status genid websetup whitelist setup-server host version status-json" "${COMP_WORDS[1]}"))
}
complete -F _husarnet_completions husarnet' > /usr/share/bash-completion/completions/husarnet
echo "========================================"
echo "Husarnet installed/upgraded."
echo "Please restart it with:"
echo ""
echo " systemctl restart husarnet"
echo ""
echo "========================================"
./usr/ 0000755 0001751 0000171 00000000000 14111461773 011370 5 ustar runner docker ./usr/bin/ 0000755 0001751 0000171 00000000000 14111461773 012140 5 ustar runner docker ./usr/bin/husarnet 0000755 0001751 0000171 00016766314 14111461763 013746 0 ustar runner docker ELF ( B 4 ; 4 ( % $ pn' n( n( 4 4 ' ' $' $) $) m , D D $' $) $) 8 l Qtd Rtd$' $) $) H H GNU 9Iш ȚlpAe GNU ) ) @-a xGƏʌ$xGƏʌ p@-M ` ]DPP @4 0 00` m` ]]( ` 0A- S @
0 3/0 S
3/0 S
3/d l0 P
\L T0 P
\