Skip to content

Commit

Permalink
fix: [#319] check WSLInterop-late too
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick330602 committed Oct 27, 2024
1 parent 5f8e8da commit 1f01fc1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/wslu-header
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ if __wsl_conf_read interop enabled | grep false >/dev/null; then
2. under [interop] section, set enabled to true;
3. restart your distribution."
exit 1
elif grep ^disabled /proc/sys/fs/binfmt_misc/WSLInterop >/dev/null; then
echo -e "WSL Interopability is temporarily disabled and WSL Utilities won't work. Please enable it by:
# echo 1 > /proc/sys/fs/binfmt_misc/WSLInterop"
exit 1
elif [ -f /proc/sys/fs/binfmt_misc/WSLInterop ] && grep -q '^disabled' /proc/sys/fs/binfmt_misc/WSLInterop; then
echo "WSL Interopability is temporarily disabled and WSL Utilities won't work. Please enable it by:
# echo 1 > /proc/sys/fs/binfmt_misc/WSLInterop"
exit 1
elif [ -f /proc/sys/fs/binfmt_misc/WSLInterop-late ] && grep -q '^disabled' /proc/sys/fs/binfmt_misc/WSLInterop-late; then
echo "WSL Interopability is temporarily disabled and WSL Utilities won't work. Please enable it by:
# echo 1 > /proc/sys/fs/binfmt_misc/WSLInterop-late"
exit 1
fi

# when --verbose, verbose; when --debug, debug.
Expand Down

0 comments on commit 1f01fc1

Please sign in to comment.