Commit 50b91d7e authored by Adam Wujek's avatar Adam Wujek 💬

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: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 064c4b05
...@@ -55,3 +55,14 @@ if [ "$PS1" ]; then ...@@ -55,3 +55,14 @@ if [ "$PS1" ]; then
fi; fi;
export PS1="wrs-`ifconfig eth0 | grep inet | awk -F: '{ print $2 }' | awk '{ print $1 }'`#" 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
Markdown is supported
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