3 # $NetBSD: staticroute,v 1.6 2012/05/02 15:57:15 gendalia 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 eval "${args#*!}" || retval
=1
42 eval "route -q $2 -$args" || retval
=1
45 done < /etc
/route.conf
)