mirror of https://github.com/OpenIPC/composer.git
				
				
				
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			14 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
| #!/bin/sh
 | |
| tt="$(fw_printenv ethaddr -n | cut -c12- | tr -d :)";
 | |
| cssid=`cat /etc/wpa_supplicant.conf | grep ssid | sed '/^#/d' | sed 's/ \{1,\}/ /g' | cut -d " " -f 2`
 | |
| nssid="ssid=\"ev300-$tt\"";
 | |
| #echo "$cssid";
 | |
| #echo "$nssid";
 | |
| echo $tt;
 | |
| #if [[ "$cssid" != "$nssid" ]]
 | |
| #   then
 | |
| #   echo "new_ssid"
 | |
| #    sed -i '5d' /etc/wpa_supplicant.conf
 | |
| #    sed -i "5i \\$nssid" /etc/wpa_supplicant.conf
 | |
| #fi
 |