Apply Button

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sat Dec 26, 2009 4:57    Post subject: Apply Button Reply with quote
What exactly does the firmware do when the apply button is clicked? Does it matter what page of the GUI you viewing when you click it as to what it does? Serial output from clicking the apply button from administration-->management is

Code:
ApplyTake:submit_button=[Management] service=[management] sleep_time=[0] action=[4]
function stop_dns_clear_resolv not found
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
vlan1: No such process
vlan0: dev_set_promiscuity(master, -1)
device eth0 left promiscuous mode
device vlan0 left promiscuous mode
device eth1 left promiscuous mode
bridge br0 is still up; can't delete it
K65automount: Try to unmount "/dev/mmc/disc0/part3 on /jffs"
K65automount: umount  /dev/mmc/disc0/part3
K65automount: Try to unmount "/dev/mmc/disc0/part1 on /mmc"
K65automount: umount  /dev/mmc/disc0/part1
K90swap: Managing swap partitions
K90swap: Unmounted swap partition /dev/mmc/disc0/part4
eth1: Operation not supported
wl0.1: No such device
wl0.2: No such device
wl0.3: No such device
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
device br0 already exists; can't create bridge with the same name
br0: Bad file descriptor
vlan0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan0 entered promiscuous mode
br0: Bad file descriptor
eth1: Operation not supported
wl0.1: No such device
wl0.2: No such device
wl0.3: No such device
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
device eth1 entered promiscuous mode
lo: File exists

SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
Key is a RSA key
Wrote key to '/tmp/root/.ssh/ssh_host_rsa_key'
Key is a DSS key
Wrote key to '/tmp/root/.ssh/ssh_host_dss_key'
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
device vlan1 entered promiscuous mode
vlan1: Setting MAC address to  00 1c 10 3b 9e e2.
vlan1: dev_set_promiscuity(master, 1)
vlan1: dev_set_allmulti(master, 1)
vlan1: dev_set_promiscuity(master, -1)
device vlan1 left promiscuous mode
vlan1: dev_set_allmulti(master, -1)
vlan1: No such process
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded


It looks like automount unmounts the mmc, jffs, and swap partition but does not remount it.

_________________
The New Me
Sponsor
Eko
DD-WRT Developer/Maintainer


Joined: 07 Jun 2006
Posts: 5771

PostPosted: Sat Dec 26, 2009 6:33    Post subject: Reply with quote
Must be something in your firewall script that does this.
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sat Dec 26, 2009 11:50    Post subject: Reply with quote
I don't exactly understand what goes on when the apply button is clicked which is why I asked, but here is my rc_firwall.

Code:
iptables -I INPUT -i br0 -s 192.168.1.0/25 -p tcp --dport 53 -j DROP
iptables -I INPUT -i br0 -s 192.168.1.0/25 -p udp --dport 53 -j DROP
iptables -t nat -I PREROUTING -p udp -i br0 -s 192.168.1.128/25 --dport 53 -j DNAT --to 208.67.222.222
iptables -t nat -I PREROUTING -p tcp -i br0 -s 192.168.1.128/25 --dport 53 -j DNAT --to 208.67.222.222
iptables -t nat -I PREROUTING -d 208.67.220.220 -j ACCEPT
/opt/etc/iptables.asia
iptables -I FORWARD -j asia


Not sure why that would cause automount not to remount.

_________________
The New Me
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sat Dec 26, 2009 13:20    Post subject: Reply with quote
Eko wrote:
Must be something in your firewall script that does this.


I would really like to know. I've been beating my head against the wall trying to figure this out. I've tried different mounting options including disabling automount to no avail.

What part of my firewall script could be causing the problem?

_________________
The New Me
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sat Dec 26, 2009 15:39    Post subject: Reply with quote
Eko wrote:
Must be something in your firewall script that does this.
OK cleared my firewall script, and it does the same thing. Serial output..

Code:
ApplyTake:submit_button=[Management] service=[management] sleep_time=[0] action=[4]
function stop_dns_clear_resolv not found
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
vlan1: No such process
vlan0: dev_set_promiscuity(master, -1)
device eth0 left promiscuous mode
device vlan0 left promiscuous mode
device eth1 left promiscuous mode
bridge br0 is still up; can't delete it
K65automount: Try to unmount "/dev/mmc/disc0/part3 on /jffs"
K65automount: umount  /dev/mmc/disc0/part3
K65automount: Try to unmount "/dev/mmc/disc0/part1 on /mmc"
K65automount: umount  /dev/mmc/disc0/part1
K90swap: Managing swap partitions
K90swap: Unmounted swap partition /dev/mmc/disc0/part4
device br0 already exists; can't create bridge with the same name
br0: Bad file descriptor
vlan0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan0 entered promiscuous mode
br0: Bad file descriptor
eth1: Operation not supported
wl0.1: No such device
wl0.2: No such device
wl0.3: No such device
eth1: Operation not supported
eth1: Operation not supported
eth1: Invalid argument
eth1: Invalid argument
eth1: Invalid argument
device eth1 entered promiscuous mode
lo: File exists

SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
Key is a RSA key
Wrote key to '/tmp/root/.ssh/ssh_host_rsa_key'
Key is a DSS key
Wrote key to '/tmp/root/.ssh/ssh_host_dss_key'
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
device vlan1 entered promiscuous mode
vlan1: Setting MAC address to  00 1c 10 3b 9e e2.
vlan1: dev_set_promiscuity(master, 1)
vlan1: dev_set_allmulti(master, 1)
vlan1: dev_set_promiscuity(master, -1)
device vlan1 left promiscuous mode
vlan1: dev_set_allmulti(master, -1)
vlan1: No such process
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
gethostbyname: Success

_________________
The New Me
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sat Dec 26, 2009 16:40    Post subject: Reply with quote
just for the sake of it, I did a 30/30/30. And the only thing I added to the router was in rc_startup, which was..

Code:
mount /dev/mmc/disc0/part2 /opt


Got the same thing same output as above with the exception of jffs I guess automount doesn't do jffs..

EDIT: Also noticed that load stays around 2.00.

_________________
The New Me
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sat Dec 26, 2009 21:28    Post subject: Reply with quote
Update:

Removed OPTware. Have SD card with 4 partitions, mmc gets mounted by the Firmware on part1. In rc_startup I have...

Code:
mount /dev/mmc/disc0/part2 /opt
mount /dev/mmc/disc0/part3 /jffs


When hitting the apply button in Administration --> Management, the mounts stay in place. Serial output bellow..

Code:
pplyTake:submit_button=[Management] service=[management] sleep_time=[0] action=[4]
function stop_dns_clear_resolv not found
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
vlan1: No such process
vlan1: No such process
vlan0: dev_set_promiscuity(master, -1)
device eth0 left promiscuous mode
device vlan0 left promiscuous mode
device eth1 left promiscuous mode
bridge br0 is still up; can't delete it
eth1: Operation not supported
wl0.1: No such device
wl0.2: No such device
wl0.3: No such device
eth1: Invalid argument
eth1: Invalid argument
device br0 already exists; can't create bridge with the same name
br0: Bad file descriptor
vlan0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan0 entered promiscuous mode
br0: Bad file descriptor
eth1: Operation not supported
wl0.1: No such device
wl0.2: No such device
wl0.3: No such device
eth1: Invalid argument
eth1: Invalid argument
device eth1 entered promiscuous mode
lo: File exists

SIOCGIFFLAGS: No such device
Key is a RSA key
Wrote key to '/tmp/root/.ssh/ssh_host_rsa_key'
SIOCGIFFLAGS: No such device
Key is a DSS key
Wrote key to '/tmp/root/.ssh/ssh_host_dss_key'
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
device vlan1 entered promiscuous mode
vlan1: Setting MAC address to  00 1c 10 3b 9e e2.
vlan1: dev_set_promiscuity(master, 1)
vlan1: dev_set_allmulti(master, 1)
vlan1: dev_set_promiscuity(master, -1)
device vlan1 left promiscuous mode
vlan1: dev_set_allmulti(master, -1)
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded


Seems automount is the problem or the firmware is running the K script for opt at the wrong time. But even with automount turned off via the service command, it still unmounted /mmc and /jffs and left /opt alone.

_________________
The New Me
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Dec 27, 2009 7:48    Post subject: Reply with quote
Put opt back on and did an update. Automount started as usual and unmounted just like before. Turned it off via the services command and ran my normal mounts via rc_startup. Everything seems to operating as planed.

Samba still has a problem shutting down. I guess at this point I will just keep it off till I need it.

EDIT: i also put my firewall script back in rc_firewall. It seems to be playing nicely as well.

_________________
The New Me
st07
DD-WRT User


Joined: 21 Nov 2008
Posts: 61

PostPosted: Mon Jun 13, 2011 22:17    Post subject: Reply with quote
So what does Apply actually do?
RCShadows
DD-WRT User


Joined: 17 Aug 2008
Posts: 437

PostPosted: Mon Jun 13, 2011 22:25    Post subject: Reply with quote
Maybe this calls for a ticket DHC cause you have seemed to stump Eko Very Happy
zoomlink
DD-WRT User


Joined: 08 May 2011
Posts: 221

PostPosted: Mon Jun 13, 2011 22:41    Post subject: Reply with quote
My observation and subsequent assumption is that when you hit apply, it changes the affected nvram variables and does a commit, then depending on the severity of the change, it may do some sort of init or startservice or stopservice, including up a full reboot.

I have no idea what the logic is but that is what the behavior of my router has led me to believe happens.
rseiler
DD-WRT Guru


Joined: 01 Oct 2007
Posts: 622

PostPosted: Mon Jun 13, 2011 22:54    Post subject: Reply with quote
That sounds right based on this thread:
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=31034
st07
DD-WRT User


Joined: 21 Nov 2008
Posts: 61

PostPosted: Tue Jun 14, 2011 13:54    Post subject: Reply with quote
I had seen that thread but I'm still not too sure. So 'Apply' performs an nvram commit + a service restart, depending on what page you click 'Apply',

Does anyone know / have a list of services that are restarted on each page? It would help me out greatly if so! Smile
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum