1 #!/bin/sh /etc/rc.common
3 # XXX - is there something that should cause reload? or can we just
4 # use info from netifd and let it handle dynamic changes? let's hope
11 DNSMASQ_DIR
=/tmp
/dnsmasq.d
12 DNSMASQ_SCRIPT
=/etc
/init.d
/dnsmasq
13 OHP_SCRIPT
=/usr
/sbin
/hnetd-ohp-script
14 OHP_BINARY
=/usr
/sbin
/ohybridproxy
15 PCP_SCRIPT
=/usr
/sbin
/hnetd-pcp-script
16 PCP_BINARY
=/usr
/sbin
/minimalist-pcproxy
21 procd_set_param
command /usr
/sbin
/hnetd
23 # SD parts are here (make configurable?)
24 if [ -f $OHP_BINARY -a -f $DNSMASQ_SCRIPT ]
27 procd_append_param
command -d $DNSMASQ_SCRIPT
28 procd_append_param
command -f $DNSMASQ_DIR/hnet.conf
29 procd_append_param
command -o $OHP_SCRIPT
30 HOSTNAME
=`cat /proc/sys/kernel/hostname`
33 procd_append_param
command -n "$HOSTNAME"
37 # Enable PCP, if it's present
38 if [ -f $PCP_BINARY -a -f $PCP_SCRIPT ]
40 procd_append_param
command -c $PCP_SCRIPT
44 procd_append_param
command -s /tmp
/hnetd.pa_state
47 procd_append_param
command -r /usr
/sbin
/hnetd-routing
49 procd_set_param respawn