blob: 89c7e905c4a18aaaa6b4beeae36c78e108674c38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
set -e
if [ ! -L /etc/resolv.conf ]; then
exit 0
fi
# 'readlink -f' will fail if the symlink doesn't resolve to an existing path
if readlink /etc/resolv.conf | grep -q connman; then
echo "Replacing resolv.conf symlink: $(readlink /etc/resolv.conf) to /etc/resolv-conf.systemd"
rm /etc/resolv.conf
ln -s /etc/resolv-conf.systemd /etc/resolv.conf
fi
|