3 # $NetBSD: staticroute,v 1.4 2009/10/07 07:51:28 tron Exp $
10 # See the route.conf(5) manual page for details.
12 $_rc_subr_loaded .
/etc
/rc.subr
15 start_cmd
="staticroute_doit Adding add"
16 stop_cmd
="staticroute_doit Deleting delete"
21 if [ -s /etc
/route.conf
]; then
22 echo "$1 static routes."
24 [ -z "$args" ] && continue
29 if [ $2 = "add" ]; then
30 eval ${args#*+} || retval
=1
34 if [ $2 = "delete" ]; then
35 eval ${args#*-} || retval
=1
39 route
-q $2 -$args || retval
=1
42 done < /etc
/route.conf