mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
Configure hostname from finit.conf
Signed-off-by: root <root@test.(none)>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -2,3 +2,4 @@ user fred
|
||||
module intel-agp
|
||||
module p4-clockmod
|
||||
check /dev/sda3
|
||||
host eviltwin
|
||||
|
||||
Reference in New Issue
Block a user