#! /bin/sh -e
exec 2>&1
IP=$(/opt/00admin/sbin/fire-ip add)
grep -q ipv4 /proc/cmdline && IP=::ffff:$IP
exec /opt/octopus/bin/octopus ${IP%/*} < /opt/octopus/tokens.txt