You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
mkimage-profiles-kometa/bld/live/image-scripts.d/99-systemd-resolved-link

10 lines
266 B

#!/bin/sh
[ -h /sbin/init ] || exit 0
[ -n "$GLOBAL_SYSTEMD_RESOLVED" ] || exit 0
if [ "$GLOBAL_SYSTEMD_RESOLVED" = stub ]; then
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
else
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
fi