#!/bin/execlineb -P
envfile /etc/s6/config/tailscale.conf
importas -uD "0" PORT PORT
importas -sCuD "" OPTS OPTS
fdmove -c 2 1
exec tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port $PORT $OPTS
