From: Christian Marangi Date: Sat, 16 Sep 2023 15:03:10 +0000 (+0200) Subject: mount_root: add support for passing args to mount_root start X-Git-Url: http://git.openwrt.org/feed/telephony.git;master?a=commitdiff_plain;h=1a5695925ecf1f440fe30b7c2864facc5a297dce;p=project%2Ffstools.git mount_root: add support for passing args to mount_root start It may be useful to pass args to mount_root start call. One usecase might be pass additional configuration to enable special option on mounting rootfs. Change main logic and permit additional args when start is used. No functional change intended as the default behaviour is saved by continuing to call start if no args are provided. Signed-off-by: Christian Marangi --- diff --git a/mount_root.c b/mount_root.c index d343909..3bd4a24 100644 --- a/mount_root.c +++ b/mount_root.c @@ -119,7 +119,7 @@ done(int argc, char *argv[1]) int main(int argc, char **argv) { - if (argc < 2) + if (argc < 2) || (!strcmp(argv[1], "start")) return start(argc, argv); if (!strcmp(argv[1], "ram")) return ramoverlay();