From 73d74628b0cff4aed04cd740ecceebf03fa23609 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 23 Dec 2021 13:26:15 +0330 Subject: more updates. some chroot stuff --- bin/chrooted | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/chrooted (limited to 'bin/chrooted') 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 -- cgit v1.2.3