mirror of
https://github.com/troglobit/finit.git
synced 2026-10-28 12:30:44 +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);
|
system(cmd);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (MATCH_CMD(line, "host ", x)) {
|
||||||
|
*cmd = 0;
|
||||||
|
build_cmd(cmd, x, CMD_SIZE);
|
||||||
|
sethostname(cmd, strlen(cmd));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ user fred
|
|||||||
module intel-agp
|
module intel-agp
|
||||||
module p4-clockmod
|
module p4-clockmod
|
||||||
check /dev/sda3
|
check /dev/sda3
|
||||||
|
host eviltwin
|
||||||
Reference in new issue
Block a user