updated patch - increase PKG_RELEASE too Am Montag, 14. Februar 2011, 20:14:58 schrieben Sie: > hi > > when i start dnsmasq i get this error > > /etc/init.d/dnsmasq start > touch: : No such file or directory > > because i didnt define leasefile in the config file ... > > this shouldnt happen as the statement is > > [ -n "$leasefile" ] && [ -e "$leasefile" ] || touch "$leasefile" > > > if $leasefile="" it will execute touch $leasefile > > this patch should fix the problem .... > > - [ -n "$leasefile" ] && [ -e "$leasefile" ] || touch "$leasefile" > + [ -n "$leasefile" ] && ( [ -e "$leasefile" ] || touch "$leasefile" > ) > > please apply > > with kind regard > Peter
diff --git a/package/dnsmasq/Makefile b/package/dnsmasq/Makefile index 14d3cc4..a74ed8e 100644 --- a/package/dnsmasq/Makefile +++ b/package/dnsmasq/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dnsmasq PKG_VERSION:=2.55 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 3e194af..7b6f515 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -103,7 +103,7 @@ dnsmasq() { [ "$readethers" = "1" ] && [ -e "/etc/ethers" ] || touch /etc/ethers config_get leasefile $cfg leasefile - [ -n "$leasefile" ] && [ -e "$leasefile" ] || touch "$leasefile" + [ -n "$leasefile" ] && ( [ -e "$leasefile" ] || touch "$leasefile" ) config_get_bool cachelocal "$cfg" cachelocal 1 config_get hostsfile "$cfg" dhcphostsfile
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
