USBIP helper scripts for usbkey

This commit is contained in:
Curt Spark 2024-03-22 17:00:56 +00:00
parent 3363a9672b
commit 73dd8429c6
1 changed files with 42 additions and 31 deletions

View File

@ -40,6 +40,17 @@ in
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
# Scripts to bind/unbind usbkey from usbip server
(pkgs.writeShellScriptBin "usbip_usbkey_bind" ''
USBKEYBUSID="$(echo `grep 0930 /sys/bus/usb/devices/*/idVendor | cut -d '/' -f 6`)"
sudo usbip bind -b $USBKEYBUSID
'')
(pkgs.writeShellScriptBin "usbip_usbkey_unbind" ''
USBKEYBUSID="$(echo `grep 0930 /sys/bus/usb/devices/*/idVendor | cut -d '/' -f 6`)"
sudo usbip unbind -b $USBKEYBUSID
'')
# wineWowPackages.full
# native wayland support (unstable)
wineWowPackages.waylandFull