Added NetworkManager hook to use systemd's DNS service. #1

This commit is contained in:
Sebastien Rannou 2015-01-30 16:01:37 +01:00
parent f94c1eec25
commit 121a239439
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
interface=$1
action=$2
if [ "$interface" = "eth0" -a "$action" = "up" ]
then
rm -f /etc/resolv.conf
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
fi