feat: add -usb and -kvm flags
This commit is contained in:
4
devc.sh
4
devc.sh
@@ -49,6 +49,10 @@ param_args() {
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
-gpu) # Enable gpu acceleration.
|
-gpu) # Enable gpu acceleration.
|
||||||
arg "--device /dev/dri" ;;
|
arg "--device /dev/dri" ;;
|
||||||
|
-kvm) # Enable KVM.
|
||||||
|
arg "--device /dev/kvm" ;;
|
||||||
|
-usb) # Enable USB access.
|
||||||
|
arg "--device /dev/bus/usb" ;;
|
||||||
-host-spawn) # Enable spawning host commands from inside the container using host-spawn.
|
-host-spawn) # Enable spawning host commands from inside the container using host-spawn.
|
||||||
arg "-v /run/user/$UID/bus:/tmp/bus"
|
arg "-v /run/user/$UID/bus:/tmp/bus"
|
||||||
arg "-e HOST_HOME=$HOME" # Used to translate paths.
|
arg "-e HOST_HOME=$HOME" # Used to translate paths.
|
||||||
|
|||||||
Reference in New Issue
Block a user