xcat-core/xCAT-SoftLayer/postscripts/setdefaultroute

7 lines
135 B
Plaintext
Raw Normal View History

#!/bin/bash
# set the default route of the node to the ip address and nic passed in
set -x
ip route replace to default via $1 dev $2