USBIP helper scripts for usbkey
This commit is contained in:
parent
3363a9672b
commit
73dd8429c6
|
|
@ -40,6 +40,17 @@ in
|
||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||||
# echo "Hello, ${config.home.username}!"
|
# 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
|
# wineWowPackages.full
|
||||||
# native wayland support (unstable)
|
# native wayland support (unstable)
|
||||||
wineWowPackages.waylandFull
|
wineWowPackages.waylandFull
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue