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 <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-10-02 13:14:16 +02:00
parent 83af7e8e9d
commit 34bdbdb3b1
+3 -6
View File
@@ -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");