#!/usr/bin/ksh
#
# wanpipe_routes
#
# original:		<tmancill@debian.org>
# modification history:
#######################################################################
prog=$(basename $0)

case "$1" in
   start)
       # add routing statements here
       #route add -net a.b.c.d wan0
       
       # add ip accounting, firewalling, masquerading, etc. here
       #ipfwadm -A in -i accept -W wan0
       ;;
    stop)
       # no need to remove routes, the Linux kernel will remove them
       # automatically when the device is configured down
       # but you might want to add another default route, perhaps...
       
       # remove the ip rules so that there will not be duplicates
       #ipfwadm -A in -d accept -W wan0
       ;;                                                                       
    *)                                                                          
       echo "Usage: $prog {start|stop}" >&2                   
       exit 1                                                                   
    ;;                                                                          
esac                                                                            
                                                                                
exit 0
