|  | @@ -973,6 +973,18 @@ initialise_mesh() {
 | 
	
		
			
			| 973 | 973 |          MESH_STARTUP_PARAMS="${MY_USERNAME} amnesic"
 | 
	
		
			
			| 974 | 974 |      fi
 | 
	
		
			
			| 975 | 975 |  
 | 
	
		
			
			|  | 976 | +    # command to switch to wired mesh
 | 
	
		
			
			|  | 977 | +    { echo '#!/bin/bash';
 | 
	
		
			
			|  | 978 | +      echo 'echo -n "eth" > /root/.mesh_interface_type';
 | 
	
		
			
			|  | 979 | +      echo 'systemctl reboot -i'; } > "$rootdir/usr/bin/wired"
 | 
	
		
			
			|  | 980 | +    chmod +x "$rootdir/usr/bin/wired"
 | 
	
		
			
			|  | 981 | +
 | 
	
		
			
			|  | 982 | +    # command to switch to wireless mesh
 | 
	
		
			
			|  | 983 | +    { echo '#!/bin/bash';
 | 
	
		
			
			|  | 984 | +      echo 'echo -n "wlan" > /root/.mesh_interface_type';
 | 
	
		
			
			|  | 985 | +      echo 'systemctl reboot -i'; } > "$rootdir/usr/bin/wireless"
 | 
	
		
			
			|  | 986 | +    chmod +x "$rootdir/usr/bin/wireless"
 | 
	
		
			
			|  | 987 | +
 | 
	
		
			
			| 976 | 988 |      { echo '[Unit]';
 | 
	
		
			
			| 977 | 989 |        echo 'Description=Initial mesh router configuration';
 | 
	
		
			
			| 978 | 990 |        echo 'After=syslog.target';
 |