Fix a bug where building usbip-vudc would ignore devcontainer config

This commit is contained in:
Oystein Tveit
2023-07-05 15:18:47 +02:00
parent 0147605ec2
commit 447cffe9ba
2 changed files with 3 additions and 3 deletions

View File

@@ -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": [

View File

@@ -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