##// END OF EJS Templates
Don't create symlink if exists /etc/resolv.conf...
Michal Švamberg -
r100:925b5ca1ddd2
parent child
Show More
@@ -1,15 +1,17
1 1 logger -t "rc.firstboot" "Creating /etc/resolv.conf symlink"
2 2
3 3 # Check if systemd resolve directory exists
4 4 if [ ! -d "/run/systemd/resolve" ] ; then
5 5 systemctl enable systemd-resolved.service
6 6 systemctl restart systemd-resolved.service
7 7 fi
8 8
9 9 # Create resolv.conf file if it does not exists
10 10 if [ ! -f "/run/systemd/resolve/resolv.conf" ] ; then
11 11 touch /run/systemd/resolve/resolv.conf
12 12 fi
13 13
14 # Create symlink to /etc/reolv.conf
14 # Create symlink to /etc/reolv.conf if not exists yet
15 if [ ! -e "/etc/resolv.conf" ] ; then
15 16 ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
17 fi
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant