gluon-wan-dnsmasq: fix usage of libpacketmark

Using service_start requires exporting of environment variables.

Fixes #397
This commit is contained in:
Nils Schneider 2015-08-04 22:51:40 +02:00
parent 4e5b3354d2
commit d9df118686

View File

@ -18,7 +18,10 @@ start() {
mkdir -p $RESOLV_CONF_DIR mkdir -p $RESOLV_CONF_DIR
/lib/gluon/wan-dnsmasq/update.lua /lib/gluon/wan-dnsmasq/update.lua
LD_PRELOAD=libpacketmark.so LIBPACKETMARK_MARK=$PACKET_MARK service_start /usr/sbin/dnsmasq -x $SERVICE_PID_FILE -u root -i lo -p $PORT -h -r $RESOLV_CONF export LD_PRELOAD=libpacketmark.so
export LIBPACKETMARK_MARK=$PACKET_MARK
service_start /usr/sbin/dnsmasq -x $SERVICE_PID_FILE -u root -i lo -p $PORT -h -r $RESOLV_CONF
} }
stop() { stop() {