mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-11-01 02:48:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			454 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			454 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| generate_certificate_volume() {
 | |
| 	grep certificates /proc/mtd > /dev/null
 | |
| 	[ $? -eq 0 ] && return
 | |
| 
 | |
| 	ls /dev/ubi0 > /dev/null
 | |
| 	[ $? -eq 0 ] || return
 | |
| 
 | |
| 	ubinfo /dev/ubi0 -N certificates > /dev/null
 | |
| 	[ $? -eq 0 ] || {
 | |
| 		ubinfo /dev/ubi0 -N wifi_fw > /dev/null
 | |
| 		[ $? -eq 0 ] && ubirmvol /dev/ubi0 -N wifi_fw
 | |
| 
 | |
| 		ubirsvol /dev/ubi0 -N rootfs_data -s 10MiB
 | |
| 		ubimkvol /dev/ubi0 -N certificates -S 20
 | |
| 	}
 | |
| }
 | |
| 
 | |
| boot_hook_add preinit_main generate_certificate_volume
 | 
