printf "nvram set dhcp_staticlist=\"%s\"\nnvram set dhcp_hostnames=\"%s\"\nnvram commit\nservice restart_net_and_phy\n" "$(nvram get dhcp_staticlist)" "$(nvram get dhcp_hostnames)"
Dang, forgot about this one created by @XentrkSee this script: https://www.snbforums.com/threads/dhcp_staticlist-and-dhcp_hostnames-utility.58957/
Or another option is to run this command to create the necessary commands to reapply the settings:
Bash:printf "nvram set dhcp_staticlist=\"%s\"\nnvram set dhcp_hostnames=\"%s\"\nnvram commit\nservice restart_net_and_phy\n" "$(nvram get dhcp_staticlist)" "$(nvram get dhcp_hostnames)"
The idea is you would save the 4 lines this command creates, and paste them back into the SSH window after the reset. It will restart your network so the devices will disconnect and fetch the manual IP assignments.
sh save-mynvram.sh dhcp_hostnames dhcp_staticlist
Saving dhcp_hostnames
Saving dhcp_staticlist
Backing up previous restore script to /tmp/mnt/AC88U/nsru/restore-mynvram.sh.bak
Saved 2 NVRAM variable(s)
Run /tmp/mnt/AC88U/nsru/restore-mynvram.sh to restore your saved settings
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!