From 34bdbdb3b1741915532442160d296dec3cd20abf Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 2 Oct 2016 13:14:16 +0200 Subject: [PATCH] resolvconf: Simplify and fix buglet - The /dev/shm/ directories are no longer needed - Do not create the resolv.conf symlink Signed-off-by: Joachim Nilsson --- plugins/resolvconf.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/resolvconf.c b/plugins/resolvconf.c index 3f7784dd..b3965ec2 100644 --- a/plugins/resolvconf.c +++ b/plugins/resolvconf.c @@ -34,13 +34,10 @@ static void setup(void *UNUSED(arg)) { _d("Setting up the resolver ..."); - mkpath("/etc/resolvconf", 0755); - mkpath("/etc/resolvconf/run", 0755); - mkpath("/dev/shm/network", 0755); - mkpath("/dev/shm/resolvconf/interface", 0755); - mkpath("/var/run/resolvconf", 0755); + mkpath("/etc/resolvconf", 0755); + mkpath("/etc/resolvconf/run", 0755); + mkpath("/var/run/resolvconf", 0755); mkpath("/var/run/resolvconf/interface", 0755); - symlink("../../../etc/resolv.conf", "/var/run/resolvconf/resolv.conf"); touch("/etc/resolvconf/run/enable-updates"); chdir("/etc/resolvconf/run/interface");