aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Appelbaum <jacob@appelbaum.net>2011-08-29 17:22:14 +0200
committerJacob Appelbaum <jacob@appelbaum.net>2011-08-29 17:22:14 +0200
commit582053df481e11b7f1648a9983a71ed147f75cf9 (patch)
tree4a23bd4b7d171df58e0e10b00e0b5c1b7d19f139
parent77a177ed0405e79c1ba3526c3582387ca42f2717 (diff)
downloadtorouter-582053df481e11b7f1648a9983a71ed147f75cf9.tar.gz
torouter-582053df481e11b7f1648a9983a71ed147f75cf9.zip
print info before takeover
-rwxr-xr-xpackages/torouter_easy_setup.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/torouter_easy_setup.sh b/packages/torouter_easy_setup.sh
index f5bf6c5..d9a85ea 100755
--- a/packages/torouter_easy_setup.sh
+++ b/packages/torouter_easy_setup.sh
@@ -33,5 +33,28 @@ apt-key add /tmp/torouter-repo.key
apt-get update --fix-missing
apt-get install -t torrouter -y torouter-prep
+echo "This is the current state of the system:"
+
+echo "Kernel message log: "
+
+dmesg
+
+echo "Kernel modules: "
+
+lsmod
+
+echo "File systems: "
+mount
+echo
+df -h
+
+echo "Interfaces: "
+
+ifconfig -a
+
+echo "Route info: "
+
+route -n
+
echo "We're going to trash your system now; you have 30 seconds to bail out!"
sleep 30 && /usr/bin/torouter_config.sh