Effective workarounds for bridged VAPs not working at boot

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4
Author Message
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2997
Location: Germany

PostPosted: Thu Dec 09, 2021 12:18    Post subject: Reply with quote
ho1Aetoo wrote:
egc wrote:
After a reboot it started to work


This is also the case on the Atheros routers.
After adding a new DHCP server you have to restart the router otherwise the clients of the VAP can't get an IP address somehow.

I assume that something is not started via the "apply" button.


Just tested it again with build r47822.
My statement seems to be no longer currently true.
Either fixed or that was related to a specific configuration (I would have to search the thread in which I had found that).

Anyway, it doesn't fit into the broadcom forum
Sponsor
naruto_uzumaki
DD-WRT Novice


Joined: 17 Oct 2020
Posts: 13

PostPosted: Tue Dec 21, 2021 11:48    Post subject: Reply with quote
Does firewall startup support bourne shell script? It seems that whenever I put the following in firewall startup, it doesn't execute on reboot.

Code:

sleep 5; /jffs/scripts/restart_wifi.sh

OR

sleep 5; sh /jffs/scripts/restart_wifi.sh


The script only runs when I manually run the command or click edit and save the firewall command via the web ui.

Permission seems ok.

Code:
root@ac88u:~# ls -l /jffs/scripts/restart_wifi.sh
-rwxr-xr-x    1 root     root           198 Dec 21 22:43 /jffs/scripts/restart_wifi.sh
root@ac88u:~# grep restart_wifi /var/log/messages
root@ac88u:~# nvram show | grep restart_wifi
size: 56533 bytes (74539 left)
rc_firewall=sleep 5; sh /jffs/scripts/restart_wifi.sh
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12904
Location: Netherlands

PostPosted: Tue Dec 21, 2021 12:02    Post subject: Reply with quote
First of all you do not need the VAP workaround any more (in recent builds, currently 47900).

Second yes the scripts will run (if executable etc.) but only if available.

It can take longer (10-30 seconds) before /jffs is online.
So either increase the sleep time or use the built in is-mounted utility to wait until the directory is online
(is-mounted.sh /jffs)

But I would just upgrade Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
naruto_uzumaki
DD-WRT Novice


Joined: 17 Oct 2020
Posts: 13

PostPosted: Tue Dec 21, 2021 12:28    Post subject: Reply with quote
Thanks. The reason I need the script to run is because I can only get static dhcp assignment to work after restarting both wifi and dnsmasq.

I think the issue is that the dhcp-hostsfile doesn't get mounted before dnsmasq starts up.

dhcp-hostsfile=/jffs/etc/config/static_leases

I am not sure if there's another way of doing it?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12904
Location: Netherlands

PostPosted: Tue Dec 21, 2021 12:51    Post subject: Reply with quote
Have you tried to restart DNSMasq after /jffs is up?
Code:
is-mounted.sh /jffs (or sleep 20)
restart dnsmasq


I have my static leases in Additional Dnsmasq Options like:
Code:
dhcp-host=08:97:98:XX:XX:XX,192.168.13.59,NITRO,1440m


maybe that is an alternative?

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
naruto_uzumaki
DD-WRT Novice


Joined: 17 Oct 2020
Posts: 13

PostPosted: Tue Dec 21, 2021 13:14    Post subject: Reply with quote
Thanks. I have changed dnsmasq.conf to use dhcp-host instead and it's simplified the overall process greatly.
scope2
DD-WRT User


Joined: 12 Jul 2017
Posts: 183

PostPosted: Sun Apr 24, 2022 18:02    Post subject: Reply with quote
I have just installed r48646 on my R7000 and was pleased to see the VAP issue has been resolved (I was still using the command workaround, coming from r47608)..

I have removed the commands from my startup script, but the VAPs are not showing on the sys-info screen (they do on my R7800 (Atheros chipset, no startup command required):

R7000:


R7800:


Is this a chipset thing? Should VAPs be showing?

For what it is worth, my AC68U (Broadcom, still running r47608 and startup commands) is not showing the VAPs on the sys-info screen either.
Goto page Previous  1, 2, 3, 4 Display posts from previous:    Page 4 of 4
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