##// END OF EJS Templates
Merge pull request #22 from drtyhlpr/master...
Merge pull request #22 from drtyhlpr/master sync with drtyhlpr

Fichier de la dernière révision:

r520:4faf10532824
r589:ce9333651b6a Fusion
Show More
41-create-resolv-symlink.sh
18 lines | 569 B | application/x-sh | BashLexer
/ files / firstboot / 41-create-resolv-symlink.sh
logger -t "rc.firstboot" "Creating /etc/resolv.conf symlink"
# Check if systemd resolve directory exists
if [ ! -d "/run/systemd/resolve" -a ! -e "/etc/resolv.conf" ] ; then
systemctl enable systemd-resolved.service
systemctl restart systemd-resolved.service
fi
# Create resolv.conf file if it does not exists
if [ ! -f "/run/systemd/resolve/resolv.conf" ] ; then
touch /run/systemd/resolve/resolv.conf
fi
# Create symlink to /etc/reolv.conf if not exists yet
if [ ! -e "/etc/resolv.conf" ] ; then
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
fi