#!/bin/sh -e . ../common_queen.sh # store since when we are a ghost date +%s >/tmp/ghost_since # do not announce gateway anymore batctl gw client # update status of our gateway ip if we_own_our_ip; then p2ptbl update $gwiptbl $oct3 "ghost\t$NodeId" br-mesh fi # TODO: setup redirection of all traffic to another gateway