11 lines
190 B
Plaintext
11 lines
190 B
Plaintext
|
#!/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
|