cdc6282274
address corresponding to RTA_GATEWAY, or nothing if it doesn't exist. Modify the exit value of route depending on this, so that one can do stuff like: #!/bin/sh gw=`route -sn get default 2>/dev/null` if [ -z "$gw" ]; then echo no default route exit 1 fi ping -w1 -c1 $gw >/dev/null 2>&1 if ! route -sn get $gw >/dev/null; then echo default gateway not responding exit 1 fi echo default gateway is at $gw |
||
---|---|---|
bin | ||
crypto | ||
dist | ||
distrib | ||
etc | ||
games | ||
gnu | ||
include | ||
lib | ||
libexec | ||
regress | ||
sbin | ||
share | ||
sys | ||
tools | ||
usr.bin | ||
usr.sbin | ||
build.sh | ||
Makefile | ||
Makefile.inc | ||
UPDATING |