From 7b0ed188b02b80462b06fb76ea30d185b8646f24 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 29 Jul 2014 04:37:50 +0200 Subject: [PATCH] gluon-wan-dnsmasq: use libpacketmark --- package/gluon-wan-dnsmasq/Makefile | 2 +- package/gluon-wan-dnsmasq/files/etc/init.d/gluon-wan-dnsmasq | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-wan-dnsmasq/Makefile b/package/gluon-wan-dnsmasq/Makefile index 14b9efa6..3722210f 100644 --- a/package/gluon-wan-dnsmasq/Makefile +++ b/package/gluon-wan-dnsmasq/Makefile @@ -11,7 +11,7 @@ define Package/gluon-wan-dnsmasq SECTION:=gluon CATEGORY:=Gluon TITLE:=Support for a secondary DNS server using the WAN interface - DEPENDS:=+gluon-core +dnsmasq + DEPENDS:=+gluon-core +dnsmasq +libpacketmark endef define Package/gluon-wan-dnsmasq/description diff --git a/package/gluon-wan-dnsmasq/files/etc/init.d/gluon-wan-dnsmasq b/package/gluon-wan-dnsmasq/files/etc/init.d/gluon-wan-dnsmasq index 790c6863..eae51927 100755 --- a/package/gluon-wan-dnsmasq/files/etc/init.d/gluon-wan-dnsmasq +++ b/package/gluon-wan-dnsmasq/files/etc/init.d/gluon-wan-dnsmasq @@ -18,7 +18,7 @@ start() { mkdir -p $RESOLV_CONF_DIR touch $RESOLV_CONF - service_start /usr/sbin/dnsmasq -x $SERVICE_PID_FILE -u root -i lo -p $PORT --packet-mark=$PACKET_MARK -h -r $RESOLV_CONF + 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 } stop() {