mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
1 parent
136dfeb41a
commit
b6bf00ed06
1 file changed
+3
@@ -174,6 +174,7 @@ int main()
|
|||||||
strcpy(cmd, "/sbin/e2fsck -C -p ");
|
strcpy(cmd, "/sbin/e2fsck -C -p ");
|
||||||
c = cmd + strlen(cmd);
|
c = cmd + strlen(cmd);
|
||||||
while (x && *x && *x != ' ') *c++ = *x++;
|
while (x && *x && *x != ' ') *c++ = *x++;
|
||||||
|
*c = 0;
|
||||||
system(cmd);
|
system(cmd);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -181,6 +182,7 @@ int main()
|
|||||||
x += 5;
|
x += 5;
|
||||||
c = username;
|
c = username;
|
||||||
while (x && *x && *x != ' ') *c++ = *x++;
|
while (x && *x && *x != ' ') *c++ = *x++;
|
||||||
|
*c = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ((x = strstr(line, "module ")) == line) {
|
if ((x = strstr(line, "module ")) == line) {
|
||||||
@@ -188,6 +190,7 @@ int main()
|
|||||||
strcpy(cmd, "/sbin/modprobe ");
|
strcpy(cmd, "/sbin/modprobe ");
|
||||||
c = cmd + strlen(cmd);
|
c = cmd + strlen(cmd);
|
||||||
while (x && *x && *x != ' ') *c++ = *x++;
|
while (x && *x && *x != ' ') *c++ = *x++;
|
||||||
|
*c = 0;
|
||||||
system(cmd);
|
system(cmd);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user