mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-30 18:39:10 +00:00 
			
		
		
		
	Update umbrel-v5.sh
If the LXC is created Privileged, the script will automatically set up USB passthrough
This commit is contained in:
		
							parent
							
								
									78d07cd3a5
								
							
						
					
					
						commit
						c64ef30a9d
					
				| @ -375,6 +375,17 @@ cat <<EOF >>$LXC_CONFIG | |||||||
| lxc.cgroup2.devices.allow: a | lxc.cgroup2.devices.allow: a | ||||||
| lxc.cap.drop: | lxc.cap.drop: | ||||||
| EOF | EOF | ||||||
|  | if [ "$CT_TYPE" == "0" ]; then | ||||||
|  | cat <<EOF >>$LXC_CONFIG | ||||||
|  | lxc.cgroup2.devices.allow: c 188:* rwm | ||||||
|  | lxc.cgroup2.devices.allow: c 189:* rwm | ||||||
|  | lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir | ||||||
|  | lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file | ||||||
|  | lxc.mount.entry: /dev/ttyUSB1       dev/ttyUSB1       none bind,optional,create=file | ||||||
|  | lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file | ||||||
|  | lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file | ||||||
|  | EOF | ||||||
|  | fi | ||||||
| msg_info "Starting LXC Container" | msg_info "Starting LXC Container" | ||||||
| pct start $CTID | pct start $CTID | ||||||
| msg_ok "Started LXC Container" | msg_ok "Started LXC Container" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user