mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
do not create useless resolvconf and network dirs in /dev/shm
This commit is contained in:
1 parent
d621b0ba15
commit
c127735e2d
1 file changed
-5
@@ -145,8 +145,6 @@ int main()
|
|||||||
FILE *f;
|
FILE *f;
|
||||||
char line[LINE_SIZE];
|
char line[LINE_SIZE];
|
||||||
int fd;
|
int fd;
|
||||||
DIR *dir;
|
|
||||||
struct dirent *d;
|
|
||||||
struct sigaction sa, act;
|
struct sigaction sa, act;
|
||||||
sigset_t nmask, nmask2;
|
sigset_t nmask, nmask2;
|
||||||
char username[USERNAME_SIZE] = DEFUSER;
|
char username[USERNAME_SIZE] = DEFUSER;
|
||||||
@@ -307,9 +305,6 @@ int main()
|
|||||||
/*
|
/*
|
||||||
* Network stuff
|
* Network stuff
|
||||||
*/
|
*/
|
||||||
makepath("/dev/shm/network");
|
|
||||||
makepath("/dev/shm/resolvconf/interface");
|
|
||||||
|
|
||||||
if ((dir = opendir("/etc/resolvconf/run/interface")) != NULL) {
|
if ((dir = opendir("/etc/resolvconf/run/interface")) != NULL) {
|
||||||
while ((d = readdir(dir)) != NULL) {
|
while ((d = readdir(dir)) != NULL) {
|
||||||
if (isalnum(d->d_name[0]))
|
if (isalnum(d->d_name[0]))
|
||||||
|
|||||||
Reference in new issue
Block a user