./ 0000755 0001751 0000171 00000000000 14111652533 010553 5 ustar runner docker ./.scripts/ 0000755 0001751 0000171 00000000000 14111652533 012320 5 ustar runner docker ./.scripts/after_remove 0000755 0001751 0000171 00000000070 14111652533 014721 0 ustar runner docker #!/bin/bash
set -euo pipefail
rm -fr /var/lib/husarnet
./.scripts/after_install 0000755 0001751 0000171 00000004701 14111652533 015077 0 ustar runner docker #!/bin/bash
set -uo 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 14111652533 011364 5 ustar runner docker ./usr/bin/ 0000755 0001751 0000171 00000000000 14111652533 012134 5 ustar runner docker ./usr/bin/husarnet 0000755 0001751 0000171 00016425250 14111652526 013734 0 ustar runner docker ELF B @ !: @ 8 @ # "
%
% h% h&