mirror of
https://github.com/troglobit/finit.git
synced 2026-11-27 20:48:24 +00:00
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:
1 parent
83af7e8e9d
commit
34bdbdb3b1
1 file changed
-3
@@ -36,11 +36,8 @@ static void setup(void *UNUSED(arg))
|
|||||||
_d("Setting up the resolver ...");
|
_d("Setting up the resolver ...");
|
||||||
mkpath("/etc/resolvconf", 0755);
|
mkpath("/etc/resolvconf", 0755);
|
||||||
mkpath("/etc/resolvconf/run", 0755);
|
mkpath("/etc/resolvconf/run", 0755);
|
||||||
mkpath("/dev/shm/network", 0755);
|
|
||||||
mkpath("/dev/shm/resolvconf/interface", 0755);
|
|
||||||
mkpath("/var/run/resolvconf", 0755);
|
mkpath("/var/run/resolvconf", 0755);
|
||||||
mkpath("/var/run/resolvconf/interface", 0755);
|
mkpath("/var/run/resolvconf/interface", 0755);
|
||||||
symlink("../../../etc/resolv.conf", "/var/run/resolvconf/resolv.conf");
|
|
||||||
|
|
||||||
touch("/etc/resolvconf/run/enable-updates");
|
touch("/etc/resolvconf/run/enable-updates");
|
||||||
chdir("/etc/resolvconf/run/interface");
|
chdir("/etc/resolvconf/run/interface");
|
||||||
|
|||||||
Reference in new issue
Block a user