#!/bin/bash
# Example private WAN router space hook.
#
# Private WAN router space hooks are run with the "start" argument
# after a space is added and with the "stop" argument before it is removed.
#
# Environment variables:
#   SPACE_ID: the space ID
#   SPACE_KEY: the space key
#   SPACE_TABLE: the space routing table
#   NODE_ID: the ID of the private WAN router

start () {
    remove 2> /dev/null
    true
}
stop () {
    remove
}
remove () {

}

# Avoid changing anything below here.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    *)
        echo "Usage: $0 {start|stop}"
        exit 1
        ;;
esac
