Configure hostname from finit.conf

Signed-off-by: root <root@test.(none)>
This commit is contained in:
root
2008-05-15 17:47:14 -03:00
parent f21b0a2580
commit 349593d41b
2 changed files with 7 additions and 0 deletions
+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);
}
+1
View File
@@ -2,3 +2,4 @@ user fred
module intel-agp
module p4-clockmod
check /dev/sda3
host eviltwin