diff options
author | terminaldweller <thabogre@gmail.com> | 2021-12-23 09:56:15 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-12-23 09:56:15 +0000 |
commit | 73d74628b0cff4aed04cd740ecceebf03fa23609 (patch) | |
tree | 456961415de6739d15637afb5a3f18e60ac4174b /bin/chrooted | |
parent | update (diff) | |
download | scripts-73d74628b0cff4aed04cd740ecceebf03fa23609.tar.gz scripts-73d74628b0cff4aed04cd740ecceebf03fa23609.zip |
more updates. some chroot stuff
Diffstat (limited to '')
-rwxr-xr-x | bin/chrooted | 6 |
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 |