mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	 c6f47257ee
			
		
	
	c6f47257ee
	
	
	
		
			
			* update netifd * update hostapd * update mt76 * update maverick * add dynamic vlan * update ucentral-client * update ucentral-schema * update ucode * update 5.10 patches * fix realtek Signed-off-by: John Crispin <john@phrozen.org>
		
			
				
	
	
		
			30 lines
		
	
	
		
			586 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			586 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| active=$(ubus call ucentral status | jsonfilter -e '@.active')
 | |
| 
 | |
| [ -n "$active" -a ! "$active" -eq 1 ] && exit 0
 | |
| 
 | |
| rm /etc/config/network /etc/config/wireless
 | |
| cp /rom/etc/config/uhttpd /rom/etc/config/firewall /rom/etc/config/dhcp /rom/etc/config/dropbear /etc/config
 | |
| config_generate
 | |
| wifi config
 | |
| 
 | |
| . /lib/functions.sh
 | |
| 
 | |
| radio_enable() { 
 | |
| 	uci set wireless.$1.disabled=0 
 | |
| } 
 | |
| 
 | |
| ssid_set() { 
 | |
| 	uci set wireless.$1.ssid='Maverick' 
 | |
| }
 | |
| 
 | |
| config_load wireless
 | |
| config_foreach radio_enable wifi-device
 | |
| config_foreach ssid_set wifi-iface
 | |
| uci commit
 | |
| 
 | |
| /etc/init.d/ucentral stop
 | |
| 
 | |
| reload_config
 |