mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			Add files via upload
							parent
							
								
									0d59ba1a96
								
							
						
					
					
						commit
						b87c0e1693
					
				|  | @ -0,0 +1,18 @@ | ||||||
|  | #!/bin/sh | ||||||
|  | 
 | ||||||
|  | case "$1" in | ||||||
|  | 	start) | ||||||
|  | 		wgc=$(fw_printenv -n wg_privkey) | ||||||
|  | 		if [ -n "$wgc" ]; then | ||||||
|  | 			wireguard | ||||||
|  | 		fi | ||||||
|  | 		;; | ||||||
|  | 
 | ||||||
|  | 	stop) | ||||||
|  | 		;; | ||||||
|  | 
 | ||||||
|  | 	*) | ||||||
|  | 		echo "Usage: $0 {start}" | ||||||
|  | 		exit 1 | ||||||
|  | 		;; | ||||||
|  | esac | ||||||
		Loading…
	
		Reference in New Issue