Configure hostname from finit.conf

Signed-off-by: root <root@test.(none)>
This commit is contained in:
root committed 2008-05-15 17:47:14 -03:00
1 parent f21b0a2580
commit 349593d41b
2 files changed
+7

No files matched your search

+6
View File
@@ -204,6 +204,12 @@ int main()
system(cmd);
continue;
}
if (MATCH_CMD(line, "host ", x)) {
*cmd = 0;
build_cmd(cmd, x, CMD_SIZE);
sethostname(cmd, strlen(cmd));
continue;
}
}
fclose(f);
}