#!/bin/sh # OpenVPN fixing skript # -- # (C) 2015, 2016 Rene Knipschild - Custom Software Development # www.rkcsd.com - P.O. Box 1468 - 34484 Korbach - GERMANY # Phone: +49 5631 9189488 # Email: email@rkcsd.com # Use my PGP pubkey for email requests: (download here) # http://go.reneknipschild.net/pubkey echo "Waiting for OpenVPN connection to be possibly ready (30s)..." sleep 30 echo "Setting up OpenVPN routes..." route add -net 192.168.0.0 netmask 255.255.255.0 gw 10.8.0.5 echo "Mounting NFS network shares..." mount /mnt/server/pool