tunneldigger: fix startup when no hookscript given

This commit is contained in:
Alexander Couzens 2014-01-20 03:52:40 +01:00
parent 3e20dd9157
commit c474b882bc
1 changed files with 7 additions and 1 deletions

View File

@ -24,8 +24,14 @@ config_cb() {
if [ ! -z "${limit_bw_down}" ]; then
broker_opts="${broker_opts} -L ${limit_bw_down}"
fi
if [ ! -z "${hook_script}" ] ; then
broker_opts="${broker_opts} -s ${hook_script}"
fi
echo "Starting tunneldigger on ${interface}"
/sbin/start-stop-daemon -S -q -b -m -p ${PIDPATH}/tunneldigger.${interface}.pid -x /usr/bin/tunneldigger -- -u ${uuid} -i ${interface} -t ${tunnel_id} -s ${hook_script} ${broker_opts}
/sbin/start-stop-daemon -S -q -b -m -p ${PIDPATH}/tunneldigger.${interface}.pid -x /usr/bin/tunneldigger -- -u ${uuid} -i ${interface} -t ${tunnel_id} ${broker_opts}
let tunnel_id++
;;
esac