aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorJan Wagner <mail@jwagner.eu>2016-03-17 17:36:16 +0100
committerJan Wagner <mail@jwagner.eu>2016-03-17 17:36:16 +0100
commit50170a27d4119c047344793bb7aec685acb3ad6e (patch)
tree923c75f339921a125ddafbbd5ebc9bc2ee480ed8 /files
parent24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac (diff)
downloadrpi2-gen-image-50170a27d4119c047344793bb7aec685acb3ad6e.tar.gz
rpi2-gen-image-50170a27d4119c047344793bb7aec685acb3ad6e.tar.bz2
rpi2-gen-image-50170a27d4119c047344793bb7aec685acb3ad6e.zip
Added: KERNEL_REDUCE - less than 128MB used space, Added: REDUCE_ parameters
Diffstat (limited to 'files')
-rw-r--r--files/firstboot/24-create-resolv-symlink.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/files/firstboot/24-create-resolv-symlink.sh b/files/firstboot/24-create-resolv-symlink.sh
index e4a65b4..0dd09de 100644
--- a/files/firstboot/24-create-resolv-symlink.sh
+++ b/files/firstboot/24-create-resolv-symlink.sh
@@ -1,4 +1,13 @@
logger -t "rc.firstboot" "Creating /etc/resolv.conf symlink"
-if [ -f "/run/systemd/resolve/resolv.conf" ] ; then
+
+
+# Check if systemd resolve directory exists
+if [ -d "/run/systemd/resolve" ] ; then
+ # 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
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
fi