#!/sbin/openrc-run name="inet2" description="Sets up wireguard interfaces connected via the host's internet connection" extra_started_commands="reloadwg" export INET2_PREFIX=/usr/local start() { ${INET2_PREFIX}/bin/inet2.sh start rc-service bird start 2> /dev/null } stop() { ${INET2_PREFIX}/bin/inet2.sh stop rc-service bird stop 2> /dev/null } restart() { stop start } reload() { ${INET2_PREFIX}/bin/inet2.sh reload rc-service bird restart 2> /dev/null }