#!/bin/bash

if test -n "$ifconfig_pool_remote_ip"
then
  ip route add $ifconfig_pool_remote_ip dev $dev
  echo "iroute $ifconfig_pool_remote_ip" >> $1
  echo "push \"route-gateway $ifconfig_pool_local_ip\"" >>$1
else
  echo "iroute $ifconfig_remote" >> $1
fi
exit 0
