#!/bin/sh

# Only run from ifup.
if [ "$MODE" != start ]; then
    exit 0
fi

active_eth=$(/usr/bin/detect-active-network-interface.sh)

if [ "$IFACE" == $active_eth ]; then
    ip route add 2a02:6b8::/32 via fe80::1 dev $active_eth metric 1024 mtu 8910 advmss 8850
fi

exit 0
