diff --git a/kvmapp/system/init.d/S98tailscaled b/kvmapp/system/init.d/S98tailscaled index 0ec3631..3c34d64 100755 --- a/kvmapp/system/init.d/S98tailscaled +++ b/kvmapp/system/init.d/S98tailscaled @@ -36,7 +36,6 @@ EOF case "$1" in start) - tailscale set --accept-dns=false if [ -f /etc/kvm/GOMEMLIMIT ]; then value=$(cat /etc/kvm/GOMEMLIMIT) export GOMEMLIMIT="${value}MiB" @@ -51,7 +50,14 @@ case "$1" in --socket=/var/run/tailscale/tailscaled.sock \ --port=${PORT} \ $FLAGS - [ $? = 0 ] && echo "OK" || echo "FAIL" + if [ $? = 0 ]; then + echo "OK" + tailscale set --accept-dns=false + # example to make your nanoKVM an exit node + # tailscale set --advertise-exit-node --advertise-routes=192.168.0.0/16 + else + echo "FAIL" + fi ;; stop) printf "Stopping $DAEMON: " @@ -111,4 +117,4 @@ EOF exit 1 esac -exit 0 \ No newline at end of file +exit 0