Explorar o código

minor cosmetic changes, rename rc.conf variable name to be more consistent

Waldemar Brodkorb %!s(int64=13) %!d(string=hai) anos
pai
achega
d322d136d7

+ 1 - 1
package/dnsmasq/Makefile

@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		dnsmasq
 PKG_VERSION:=		2.55
-PKG_RELEASE:=		2
+PKG_RELEASE:=		3
 PKG_MD5SUM:=		b093d7c6bc7f97ae6fd35d048529232a
 PKG_DESCR:=		A lightweight DNS and DHCP server
 PKG_SECTION:=		dns

+ 4 - 6
package/dnsmasq/files/dnsmasq.conf

@@ -12,21 +12,19 @@ expand-hosts
 # add more dhcp-range options for every subnet
 dhcp-range=192.168.1.129,192.168.1.254,255.255.255.0,72h
 interface=lo
-interface=eth0.0
-#interface=eth1
-interface=br0
+interface=eth0
 
 # Enable dnsmasq's built-in TFTP server
-#enable-tftp
+enable-tftp
 # Set the root directory for files available via TFTP.
-#tftp-root=/tftpboot
+tftp-root=/tftpboot
 
 dhcp-authoritative
 dhcp-leasefile=/tmp/dhcp.leases
 
 # use /etc/ethers for static hosts
 # <hwaddr> <ipaddr>
-#read-ethers
+read-ethers
 
 # other useful options (0.0.0.0 means server itself)
 # default route(s):

+ 1 - 1
package/dnsmasq/files/dnsmasq.init

@@ -6,7 +6,7 @@
 case $1 in
 autostop) ;;
 autostart)
-	[[ $dns_dhcp = NO ]] && exit 0
+	[[ $dnsmasq = NO ]] && exit 0
 	exec sh $0 start
 	;;
 start)

+ 1 - 1
package/dnsmasq/files/dnsmasq.postinst

@@ -4,4 +4,4 @@
 gid=$(get_next_gid)
 add_user dnsmasq $(get_next_uid) $gid /tmp
 add_group dnsmasq $gid
-add_rcconf dnsmasq dns_dhcp NO
+add_rcconf dnsmasq dnsmasq NO