gluon-wan-dnsmasq: fix usage of libpacketmark
Using service_start requires exporting of environment variables. Fixes #397
This commit is contained in:
parent
4e5b3354d2
commit
d9df118686
@ -18,7 +18,10 @@ start() {
|
||||
mkdir -p $RESOLV_CONF_DIR
|
||||
/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() {
|
||||
|
Loading…
Reference in New Issue
Block a user