#!/bin/sh -ex
export PATH='/home/osmocom-build/jenkins/workspace/ttcn3-ggsn-test-kernel-latest/_testenv/data/scripts:/home/osmocom-build/jenkins/workspace/ttcn3-ggsn-test-kernel-latest/_testenv/data/scripts/qemu:/home/osmocom-build/jenkins/workspace/ttcn3-ggsn-test-kernel-latest/ggsn_tests:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH'
mount -t debugfs none /sys/kernel/debug || true
echo -n 'module gtp +p' > /sys/kernel/debug/dynamic_debug/control || true
ip addr add 172.18.3.2/24 brd 172.18.3.255 dev eth0
ip addr add 172.18.3.201/24 brd 172.18.3.255 dev eth0
ip route add default via 172.18.3.1 dev eth0
sysctl net.ipv4.ip_forward=1
osmo-ggsn
