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.
 
 
 
 
 
 

21 lines
368 B

#!/bin/sh /etc/rc.common
# Copyright (C) 2015 OpenWrt.org
NAME=crelay
START=93
PROG=/usr/bin/${NAME}
USE_PROCD=1
# Custom relay labels (for Web GUI) are defined in /etc/crelay.conf
start_service() {
procd_open_instance
procd_set_param command "$PROG"
# daemon mode (not daemonized) - starts HTTP server
procd_append_param command -d
procd_close_instance
}