aboutsummaryrefslogtreecommitdiffstats
path: root/bin/chrooted
blob: 6815dda67985e7b401a33ee32582bdc49fe5ce5d (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
  echo "We are chrooted!"
else
  echo "Business as usual"
fi