mirror of
https://github.com/openwrt/packages.git
synced 2026-01-08 18:40:21 +04:00
snowflake: add package
Package Tor's Snowflake system components so users can offer e.g. a standalone Snowflake proxy on their routers or other devices. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
18
net/snowflake/files/snowflake-proxy.init
Executable file
18
net/snowflake/files/snowflake-proxy.init
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
USE_PROCD=1
|
||||
NAME=snowflake-proxy
|
||||
PROG=/usr/bin/$NAME
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG" -verbose
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_set_param user snowflake
|
||||
procd_set_param group snowflake
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
Reference in New Issue
Block a user