mirror of
				https://github.com/meshtastic/firmware.git
				synced 2025-10-28 23:34:03 +00:00 
			
		
		
		
	 7d8f9c7f6d
			
		
	
	
		7d8f9c7f6d
		
			
		
	
	
	
	
		
			
			* Stop the madness! Run as a user (not root) * Trigger fsdir migration for < 2.6.9 --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
		
			
				
	
	
		
			11 lines
		
	
	
		
			355 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			355 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| cp "release/meshtasticd_linux_$(uname -m)" /usr/bin/meshtasticd
 | |
| mkdir -p /etc/meshtasticd
 | |
| if [[ -f "/etc/meshtasticd/config.yaml" ]]; then
 | |
| 	cp bin/config-dist.yaml /etc/meshtasticd/config-upgrade.yaml
 | |
| else
 | |
| 	cp bin/config-dist.yaml /etc/meshtasticd/config.yaml
 | |
| fi
 | |
| cp bin/meshtasticd.service /usr/lib/systemd/system/meshtasticd.service
 |