simple-init

A set of init binaries for linux
git clone git://depsterr.com/git/simple-init
Log | Files | Refs | README | LICENSE

commit 34d3e07e2fd4d399830324d2258c84a8547f2373
parent 5d94a0961753cb376e9f4791238197ef4c47cf3a
Author: depsterr <depsterr@protonmail.com>
Date:   Thu,  4 Jun 2020 01:58:50 +0200

added a comment ot the mountcmd

Diffstat:
Minitscripts/util.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/initscripts/util.c b/initscripts/util.c @@ -80,12 +80,13 @@ int is_mounted(char* path) { void mount(char* options, char* type, char* device, char* mountpoint) { if (is_mounted(mountpoint)) { - char newopts[256] = "remount,"; + char newopts[128] = "remount,"; strcat(newopts,options); options = newopts; } char* mountcmd[] = { "/bin/mount", "-o", options, "-t", type, device, mountpoint, 0 }; + /* Could use the mount syscall, but I'm lazy, this allows for parellel mounting AND I'm lazy */ spawn_process(mountcmd); }