#!/bin/sh set -e ## # variables localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/..)} libexec="${localbase}"/libexec/portzap ## # functions . "${libexec}"/functions/print.sh ## # main if [ "$(id -u)" = "0" ]; then "${libexec}"/setup/setup-user "${libexec}"/setup/setup-doas else printerr "you must be root" exit 1 fi