summaryrefslogtreecommitdiff
blob: b0db4825ccd0ec3fd5a4ca8023b0c70a5b6a72b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
IFACE=$1

/bin/sleep 1

[ -s /etc/conf.d/net ] && . /etc/conf.d/net

# Recreate the default route so autodial works

if [ -n "${gateway}" ] && [ "${gateway%/*}" = "${IFACE}" ]; then
	/sbin/route add default dev ${gateway%/*}
fi