You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
389 B

#!/bin/sh /etc/rc.common
# Copyright (C) 2013 OpenWrt.org
# start after and stop before networking
START=20
STOP=89
USE_PROCD=1
service_triggers()
{
procd_add_reload_trigger "yunbridge"
}
start_service()
{
[ "$(uci -q get yunbridge.config.disabled)" = "1" ] && return 0
procd_open_instance
procd_set_param command "/sbin/yunbridge"
procd_set_param respawn
procd_close_instance
}