mirror of
https://github.com/h7x4/usbip-dkms-devcontainer-feature.git
synced 2025-06-14 21:35:50 +02:00
Fix a bug where building usbip-vudc would ignore devcontainer config
This commit is contained in:
features/usbip-dkms
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "USBIP DKMS Module",
|
||||
"id": "usbip-dkms",
|
||||
"version": "0.2.2",
|
||||
"version": "0.2.3",
|
||||
"description": "DKMS module for USBIP",
|
||||
|
||||
"installsAfter": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
KERNEL_VERSION="${KERNELVERSION:-}"
|
||||
ENABLE_VUDC="${ENABLEVUDC:-}"
|
||||
ENABLE_VUDC="${ENABLEVUDC:-false}"
|
||||
|
||||
set -euo
|
||||
|
||||
@ -30,7 +30,7 @@ export CONFIG_USBIP_CORE=m
|
||||
export CONFIG_USBIP_VHCI_HCD=m
|
||||
export CONFIG_USBIP_HOST=m
|
||||
|
||||
if [ -n "$ENABLE_VUDC" ]; then
|
||||
if [ "$ENABLE_VUDC" != "false" ]; then
|
||||
export CONFIG_USBIP_VUDC=m
|
||||
sed -i "s|# ||g" "/usr/src/usbip-${KERNEL_VERSION}/dkms.conf"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user