Skip to content

Instantly share code, notes, and snippets.

View a-stankevich's full-sized avatar

Arthur Stankevich a-stankevich

View GitHub Profile
@a-stankevich
a-stankevich / wsl-fix-resolvconf.sh
Created June 29, 2022 09:23 — forked from nfekete/wsl-fix-resolvconf.sh
Fix resolv.conf in Windows Subsystem for Linux, when WSL doesn't correctly generate it.
#!/bin/bash
TMP=`mktemp`
trap ctrlC INT
removeTempFiles() {
rm -f $TMP
}
ctrlC() {