Project

General

Profile

Bug #8465 » fixgw.sh.txt

fixgw - Milad Soltanian, 10/05/2020 03:36 PM

 
1
HOSTNAME="$(hostname)"
2

    
3
if ! [ $(route -n show 0.0.0.0 | grep gateway | cut -d ":" -f 2 | cut -d " " -f 2) == "10.10.10.1" ]; then route add -net 0.0.0.0/0 10.10.10.1 ; fi
(1-1/2)