aboutsummaryrefslogtreecommitdiffstats
path: root/bin/chrooted
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-12-23 09:56:15 +0000
committerterminaldweller <thabogre@gmail.com>2021-12-23 09:56:15 +0000
commit73d74628b0cff4aed04cd740ecceebf03fa23609 (patch)
tree456961415de6739d15637afb5a3f18e60ac4174b /bin/chrooted
parentupdate (diff)
downloadscripts-73d74628b0cff4aed04cd740ecceebf03fa23609.tar.gz
scripts-73d74628b0cff4aed04cd740ecceebf03fa23609.zip
more updates. some chroot stuff
Diffstat (limited to '')
-rwxr-xr-xbin/chrooted6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/chrooted b/bin/chrooted
new file mode 100755
index 0000000..069bef6
--- /dev/null
+++ b/bin/chrooted
@@ -0,0 +1,6 @@
+#!/usr/bin/bash
+if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
+ echo "We are chrooted!"
+else
+ echo "Business as usual"
+fi