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