And I mean it!

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka
2008-05-05 15:55:20 -03:00
parent 7867db7b23
commit 136dfeb41a
+6 -5
View File
@@ -164,7 +164,7 @@ int main()
i = strlen(line);
if (i && line[i - 1] == '\n')
line[i] = 0;
line[i - 1] = 0;
if (debug)
printf("conf: %s\n", line);
@@ -173,20 +173,21 @@ int main()
x += 6;
strcpy(cmd, "/sbin/e2fsck -C -p ");
c = cmd + strlen(cmd);
while (x && *x != ' ') *c++ = *x++;
while (x && *x && *x != ' ') *c++ = *x++;
system(cmd);
continue;
}
if ((x = strstr(line, "user ")) == line) {
x += 5;
c = username;
while (x && *x != ' ') *c++ = *x++;
while (x && *x && *x != ' ') *c++ = *x++;
continue;
}
if ((x = strstr(line, "module ")) == line) {
x += 7;
strcpy(cmd, "/sbin/insmod ");
strcpy(cmd, "/sbin/modprobe ");
c = cmd + strlen(cmd);
while (x && *x != ' ') *c++ = *x++;
while (x && *x && *x != ' ') *c++ = *x++;
system(cmd);
continue;
}