That script did not work for me, but a similar script by the netguy did. I added some lines from the original script from the wiki to show the values in the web-gui:
And the working script for v3.0-r33525 std (10/17/17). In the newer firmware udhcpc changed it's location from /usr/sbin/udhcpc to simple /sbin/udhcpc. The webgui does not work with shell variables like the old version but uses variables in the nvram.
Code:
# create a symbolic link, where the program can create a file called
# udhcpc.expires if the symbolic link does not already exists
[ ! -e /tmp/udhcpc ] && ln -s /sbin/rc /tmp/udhcpc
# start the dhcp-client on the bridge interface br0 while running scripts
# with the symbolic link created before. the hostname gets querried with
# nvram from the persistent system settings. the default gateway is
# stored by the client in the nvram but the route is not set. the client
# will change the IP of it's interface.
/sbin/udhcpc -i br0 -p /var/run/udhcpc.pid -s /tmp/udhcpc -H `nvram get router_name`
# now set the default gateway
route add default gw `nvram get wan_gateway`
# Config DNS - get the old nameserver into a temporary file
/bin/cat /etc/resolv.conf | /bin/grep -v nameserver > /tmp/resolv_tmp.conf
# put the new nameserver querried by the dhcp-client into the temporary file
/bin/echo nameserver `nvram get wan_get_dns` >> /tmp/resolv_tmp.conf
# make the temporary file permanent
/bin/cp /tmp/resolv_tmp.conf /etc/resolv.conf
# Show Values in Web GUI per nvarm variables
nvram set lan_ipaddr=`ifconfig br0 | grep inet | cut -d: -f2 | cut -d' ' -f1`
nvram set lan_netmask=`ifconfig br0 | grep inet | cut -d: -f4`
nvram set lan_gateway=`route -n|grep UG|awk '{print $2;}'`
nvram set sv_localdns=`nvram get wan_get_dns`
Posted: Tue Jun 05, 2018 12:50 Post subject: Wiki access
I can update the wiki. I am trying to figure out which script you are updating. _________________ Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings
Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.
Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS
Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
Posted: Wed Jun 06, 2018 3:49 Post subject: Re: Account for Wiki needed / could someone update an articl
78Mhz wrote:
And the working script for v3.0-r33525 std (10/17/17). In the newer firmware udhcpc changed it's location from /usr/sbin/udhcpc to simple /sbin/udhcpc.
No need to hardcode the full path in the command, /bin , /sbin , /usr/bin , and /usr/sbin are in the command search path. _________________ Kernel panic: Aiee, killing interrupt handler!