-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provide network manager configuration
- Loading branch information
1 parent
fa8c261
commit 93fbd7b
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env bash | ||
usage() { | ||
echo "setup systemd-resolved to work with network manager" | ||
|
||
# shellcheck disable=1004,2016 | ||
echo ' | ||
_ _ | ||
_ __ ___| |___ _____ _ __| | __ _ __ ___ __ _ _ __ __ _ __ _ | ||
| |_ \ / _ \ __\ \ /\ / / _ \| |__| |/ /____| |_ ` _ \ / _` | |_ \ / _` |/ _` | | ||
| | | | __/ |_ \ V V / (_) | | | <_____| | | | | | (_| | | | | (_| | (_| | | ||
|_| |_|\___|\__| \_/\_/ \___/|_| |_|\_\ |_| |_| |_|\__,_|_| |_|\__,_|\__, | | ||
|___/ | ||
___ _ __ | ||
/ _ \ |__| | ||
| __/ | | ||
\___|_| | ||
' | ||
} | ||
|
||
pre_main() { | ||
return 0 | ||
} | ||
|
||
main_pacman() { | ||
require_pacman systemd-resolvconf | ||
|
||
printf '[main]\nsystemd-resolved=false' | sudo tee '/etc/NetworkManager/conf.d/no-systemd-resolved.conf' | ||
|
||
sudo systemctl restart NetworkManager | ||
sudo systemctl enable --now systemd-resolved.service | ||
} | ||
|
||
main_xbps() { | ||
return 1 | ||
} | ||
|
||
main_apt() { | ||
return 1 | ||
} | ||
|
||
main_pkg() { | ||
return 1 | ||
} | ||
|
||
main_brew() { | ||
return 1 | ||
} | ||
|
||
main() { | ||
return 0 | ||
} | ||
|
||
main_parham() { | ||
return 0 | ||
} |