X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=hnetd%2Ffiles%2Fhnetd.init;h=6cdb4be078f10f7d546c61483122650be3516457;hb=9d6f368724e98b8031819e30cbbb1131a0c0aec3;hp=70d0d70dd9dfb6995f18bf0b889fbab62c38ca9c;hpb=4988cbc735131ea90af79019190cd1f9b5ee2db2;p=lede-routing%2F.git diff --git a/hnetd/files/hnetd.init b/hnetd/files/hnetd.init index 70d0d70..6cdb4be 100644 --- a/hnetd/files/hnetd.init +++ b/hnetd/files/hnetd.init @@ -12,6 +12,8 @@ DNSMASQ_DIR=/tmp/dnsmasq.d DNSMASQ_SCRIPT=/etc/init.d/dnsmasq OHP_SCRIPT=/usr/sbin/hnetd-ohp-script OHP_BINARY=/usr/sbin/ohybridproxy +PCP_SCRIPT=/usr/sbin/hnetd-pcp-script +PCP_BINARY=/usr/sbin/minimalist-pcproxy start_service() { mkdir -p $DNSMASQ_DIR @@ -23,7 +25,7 @@ start_service() { then mkdir -p $DNSMASQ_DIR procd_append_param command -d $DNSMASQ_SCRIPT - procd_append_param command -f $DNSMASQ_DIR/hnet.conf + procd_append_param command -f $DNSMASQ_DIR/hnet.conf procd_append_param command -o $OHP_SCRIPT HOSTNAME=`cat /proc/sys/kernel/hostname` if [ -n "$HOSTNAME" ] @@ -31,6 +33,13 @@ start_service() { procd_append_param command -n "$HOSTNAME" fi fi + + # Enable PCP, if it's present + if [ -f $PCP_BINARY -a -f $PCP_SCRIPT ] + then + procd_append_param command -c $PCP_SCRIPT + fi + # State file procd_append_param command -s /tmp/hnetd.pa_state