Files
wsl-tools/wsl-interop-ready
T
2026-09-05 02:13:35 +08:00

9 lines
212 B
Bash
Executable File

#!/bin/bash
# returns succesful when wsl interop is ready
shopt -s nullglob
if [ -f /proc/sys/fs/binfmt_misc/WSLInterop ] && \
sockets=(/run/WSL/*_interop) && [ -S "${sockets[0]:-}" ]; then
exit 0
fi
exit 1