mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-31 02:49:19 +00:00 
			
		
		
		
	Update zwave-js-ui-v4.sh
If the LXC is created Privileged, the script will automatically set up USB passthrough.
This commit is contained in:
		
							parent
							
								
									5daca675cf
								
							
						
					
					
						commit
						809af179fa
					
				| @ -256,8 +256,9 @@ export PCT_OPTIONS=" | |||||||
|   $PW |   $PW | ||||||
| " | " | ||||||
| bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit | bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/ct/create_lxc.sh)" || exit | ||||||
| LXC_CONFIG=/etc/pve/lxc/${CTID}.conf | if [ "$CT_TYPE" == "0" ]; then | ||||||
| cat <<EOF >>$LXC_CONFIG |   LXC_CONFIG=/etc/pve/lxc/${CTID}.conf | ||||||
|  |   cat <<EOF >>$LXC_CONFIG | ||||||
| lxc.cgroup2.devices.allow: a | lxc.cgroup2.devices.allow: a | ||||||
| lxc.cap.drop: | lxc.cap.drop: | ||||||
| lxc.cgroup2.devices.allow: c 188:* rwm | lxc.cgroup2.devices.allow: c 188:* rwm | ||||||
| @ -268,6 +269,7 @@ lxc.mount.entry: /dev/ttyUSB1       dev/ttyUSB1       none bind,optional,create= | |||||||
| lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       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 | lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file | ||||||
| EOF | 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