From 5b9df8c1d5836d166e6627808842ec70ca044459 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Sun, 29 Aug 2021 14:55:18 +0200 Subject: [PATCH] Updated rasctl server info message --- src/raspberrypi/rasctl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/raspberrypi/rasctl.cpp b/src/raspberrypi/rasctl.cpp index d2ed4411..ca95c527 100644 --- a/src/raspberrypi/rasctl.cpp +++ b/src/raspberrypi/rasctl.cpp @@ -315,7 +315,11 @@ void CommandServerInfo(const string& hostname, int port) if (device.block_size()) { cout << " " << device.block_size() << " BPS"; } - cout << (device.file().name().empty() ? "" : " " + device.file().name()) << endl; + cout << (device.file().name().empty() ? "" : " " + device.file().name()); + if (device.properties().read_only() || device.status().protected_()) { + cout << " read-only"; + } + cout <