24 lines
		
	
	
		
			400 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			400 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| # /usr/local/etc/rc.d/setup_netgraph
 | |
| #
 | |
| # REQUIRE: FILESYSTEM kld
 | |
| # PROVIDE: setup_netgraph
 | |
| # BEFORE: netif
 | |
| 
 | |
| . /etc/rc.subr
 | |
| name=setup_netgraph
 | |
| rcvar=${name}_enable
 | |
| start_cmd="${name}_start"
 | |
| stop_cmd="${name}_stop"
 | |
| load_rc_config $name
 | |
| 
 | |
| setup_netgraph_start() {
 | |
|     /usr/local/bin/setup_netgraph start
 | |
| }
 | |
| 
 | |
| setup_netgraph_stop() {
 | |
|     /usr/local/bin/setup_netgraph stop
 | |
| }
 | |
| 
 | |
| run_rc_command "$1"
 | 
