Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Sat Dec 26, 2009 4:57 Post subject: Apply Button
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
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Sat Dec 26, 2009 13:20 Post subject:
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
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Sat Dec 26, 2009 15:39 Post subject:
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
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Sat Dec 26, 2009 21:28 Post subject:
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
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Sun Dec 27, 2009 7:48 Post subject:
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
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.