javitu / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 2 forks source link

dhcp change scripts do not function in dnsmasq #1345

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a simple script in /etc/storage/dnsmasq/dhcpd-script.sh
2. Add the config line "dhcp-script=/etc/storage/dnsmasq/dhcpd-script.sh" to 
the custom configuration file "dnsmasq.conf" using the gui 
(Advanced_DHCP_Content.asp) or via the shell 
(/etc/storage/dnsmasq/dnsmasq.conf).
3.Restart dnsmasq

What is the expected output? What do you see instead?
Expect that dnsmasq executes the configured script each time a lease is 
renewed, added or deleted. This allows for dynamic configuration triggered by a 
DHCP request (such as dynamic iptables or DNS configuration).
Instead, dnsmasq refuses to start:
Oct 21 12:15:33 dnsmasq[14128]: recompile with HAVE_SCRIPT defined to enable 
lease-change scripts at line 31 of /etc/storage/dnsmasq/dnsmasq.conf
Oct 21 12:15:33 dnsmasq[14128]: FAILED to start up

What version of the product are you using? On what operating system?
BN750DB_3.0.3.8-084_aria

Please describe the problem as detailed as it's possible.
If you have connection problem, then syslog file is required. (please do
attach it as a file)
Note that if there will be a poor problem description the issue status will
be changed to 'Invalid'!
Suggest that in subsequent builds, that HAVE_SCRIPT is defined in order to 
allow this functionality

Original issue reported on code.google.com by jski...@gmail.com on 21 Oct 2014 at 2:26

GoogleCodeExporter commented 9 years ago
Suggest you learn how to build firmware yourself,
this way you add/remove whatever options you wish.

Original comment by irher...@gmail.com on 7 Nov 2014 at 2:29