| 
									
										
										
										
											2022-12-10 18:42:02 -05:00
										 |  |  | #!/bin/sh | 
					
						
							|  |  |  | # /usr/local/etc/rc.d/poudboot | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # REQUIRE: FILESYSTEM kld | 
					
						
							|  |  |  | # PROVIDE: poudboot | 
					
						
							|  |  |  | # AFTER: netif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | . /etc/rc.subr | 
					
						
							|  |  |  | name=poudboot | 
					
						
							|  |  |  | rcvar=${name}_enable | 
					
						
							|  |  |  | start_cmd="${name}_start" | 
					
						
							|  |  |  | stop_cmd="${name}_stop" | 
					
						
							|  |  |  | load_rc_config $name | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | poudboot_start() { | 
					
						
							| 
									
										
										
										
											2023-07-11 03:52:22 -04:00
										 |  |  |     PATH="${PATH}:/usr/local/bin" /usr/local/bin/poudboot start | 
					
						
							| 
									
										
										
										
											2022-12-10 18:42:02 -05:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | poudboot_stop() { | 
					
						
							| 
									
										
										
										
											2023-07-11 03:52:22 -04:00
										 |  |  |     PATH="${PATH}:/usr/local/bin" /usr/local/bin/poudboot stop | 
					
						
							| 
									
										
										
										
											2022-12-10 18:42:02 -05:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | run_rc_command "$1" |