0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 03:41:44 +00:00
packages/net/kplex/files/kplex.init
Nuno Goncalves f5e6c1120b kplex: add init script
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
2015-08-09 11:50:11 +01:00

20 lines
337 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2015 OpenWrt.org
START=99
USE_PROCD=1
PROG=/usr/bin/kplex
CONF_FILE=/etc/kplex.conf
start_service() {
[ -e "$CONF_FILE" ] || return 1
procd_open_instance
procd_set_param command "$PROG" -f "$CONF_FILE"
procd_set_param respawn
procd_set_param file "$CONF_FILE"
procd_close_instance
}