From cb38e778ee5905884af4cbf5aca346e469c24d7a Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Thu, 6 Jan 2022 17:14:03 +0000 Subject: [PATCH] start-u9fs.sh: enable protocol debug with `export U9FS_LOGGING=enable` --- bin/start-u9fs.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/start-u9fs.sh b/bin/start-u9fs.sh index 4d61cb9..591abe7 100755 --- a/bin/start-u9fs.sh +++ b/bin/start-u9fs.sh @@ -1,3 +1,8 @@ #!/bin/sh -# U9FS_LOG="-l $JEHANNE/hacking/lib/u9fs.log -z -D" +if [ "$U9FS_LOGGING" = "enable" ]; then + LOGFILE=$JEHANNE/hacking/lib/u9fs.log + date > $LOGFILE + echo Starting U9FS >> $LOGFILE + U9FS_LOG="-l $LOGFILE -z -D" +fi $JEHANNE/hacking/bin/u9fs $U9FS_LOG -a none -u $USER $JEHANNE