Skip to content
Snippets Groups Projects
Commit 50b91d7e authored by Adam Wujek's avatar Adam Wujek :speech_balloon:
Browse files

rootfs: print whether dot-config is valid after log-in


Print information about performed dot-config check and source of dot-config.
Information about potential problems in dot-config can be easily lost among
all printouts during the boot.

Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
parent 064c4b05
Branches
Tags
No related merge requests found
......@@ -55,3 +55,14 @@ if [ "$PS1" ]; then
fi;
export PS1="wrs-`ifconfig eth0 | grep inet | awk -F: '{ print $2 }' | awk '{ print $1 }'`#"
echo -n "dot-config status: "
if [ -f /tmp/dot-config_status ]; then
cat /tmp/dot-config_status
else
echo "error!"
fi
if [ -f /tmp/dot-config_source ]; then
echo -n "dot-config source: "
cat /tmp/dot-config_source
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment