mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
Configure hostname from finit.conf
Signed-off-by: root <root@test.(none)>
This commit is contained in:
1 parent
f21b0a2580
commit
349593d41b
2 files changed
+7
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user