summaryrefslogtreecommitdiff
path: root/src/cmd/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/init/init.c')
-rw-r--r--src/cmd/init/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/init/init.c b/src/cmd/init/init.c
index d8cb1f4..68268bf 100644
--- a/src/cmd/init/init.c
+++ b/src/cmd/init/init.c
@@ -129,6 +129,13 @@ int main(void) {
MOUNT_AT("/") { fs_whitelist(allow); }
execv(argv[0], (void*)argv);
}
+ MOUNT_AT("/dev/ntp") {
+ const char *allow[] = {"/bin/ntpfs", "/net/connect/", NULL};
+ const char *argv[] = {"/bin/ntpfs", "/net/connect/0/10.69.0.1/udp/123", NULL};
+ MOUNT_AT("/") { fs_whitelist(allow); }
+ _sys_sleep(1000); /* hack, waits until the network goes up */
+ execv(argv[0], (void*)argv);
+ }
if (!fork()) {
redirect("/bin/shell", "/dev/com1", "/dev/com1");