Commit ad8413a5 authored by Joab Bremer's avatar Joab Bremer

Add new file

parent de86a909
#!/bin/bash
INTERFACE=eth0
GATEWAY_IFUP=10.11.0.1
GATEWAY_IFDOWN=192.168.0.1
TARGET_HOST=8.8.8.8
ping -c 3 $TARGET_HOST > /dev/null
if [ $? -eq 0 ]; then
/sbin/ip route replace default via $GATEWAY_IFUP
else
/sbin/ip route replace default via $GATEWAY_IFDOWN
fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment