From 3b4b625362545685303a84e8ac3787d1b6d682c8 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 27 Apr 2016 03:30:40 +0200 Subject: [PATCH] block: add remount paramter Signed-off-by: John Crispin --- block.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/block.c b/block.c index 2d44a8a..ef58665 100644 --- a/block.c +++ b/block.c @@ -1434,6 +1434,14 @@ int main(int argc, char **argv) if (!strcmp(argv[1], "umount")) return main_umount(argc, argv); + + if (!strcmp(argv[1], "remount")) { + int ret = main_umount(argc, argv); + + if (!ret) + ret = main_mount(argc, argv); + return ret; + } } ULOG_ERR("Usage: block \n"); -- 2.25.1