소스 검색

gluon-wan-dnsmasq: use libpacketmark

Matthias Schiffer 10 년 전
부모
커밋
7b0ed188b0
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      package/gluon-wan-dnsmasq/Makefile
  2. 1 1
      package/gluon-wan-dnsmasq/files/etc/init.d/gluon-wan-dnsmasq

+ 1 - 1
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

+ 1 - 1
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() {