#!/bin/bash
#-------------------------------------------------------------------------------
#
# /etc/ppp/ip-up.d/50cdi2
#
# setup PPP interface to the CDI2 PPP/PLK gateway
#
# (c)2023 AIT Austrian Institute of Technology
#-------------------------------------------------------------------------------

if [[ "$PPP_LOCAL" == "192.168.100"* ]]; then
   # setup route to PLK gateway
   ip route add 192.168.100.0/24 dev "$PPP_IFACE"
fi
