LiveCD - Added IP Address to GUI when ssh enabled

This commit is contained in:
BWZ
2013-03-25 11:29:02 +10:00
parent dc4665e1d3
commit 39bc121b76

View File

@@ -117,6 +117,8 @@ show_menu() {
f1="/etc/ssh/ssh_host_rsa_key"
if [ -f $f1 ] ; then
echo "[1] Disable SSH [Currently Enabled]"
echo -ne " beef@"
ifconfig | awk -F "[: ]+" '/inet addr:/ { if ($4 != "127.0.0.1") print $4 }'
else
echo "[1] Enable SSH [Currently Disabled]"
fi