aboutsummaryrefslogtreecommitdiffstats
path: root/bin/chrooted
blob: 069bef677185b8985888462010466435171dfaca (plain) (blame)
1
2
3
4
5
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