2
.TH ISCHROOT 1 "17 May 2011" "Debian"
4
ischroot \- detect if running in a chroot
7
[\-\-default\-false] [\-\-default\-true] [\-\-help] [\-\-version]
11
detects if it is currently running in a chroot. The exit status is:
14
if currently running in a chroot
17
if currently not running in a chroot
20
if the detection is not possible (On GNU/Linux in happens if the script
24
.B "-f, --default-false "
25
Exit with status 1 if the detection is not possible.
27
.B "-t, --default-true "
28
Exit with status 0 if the detection is not possible.
31
Print a usage message on standard output and exit successfully.
34
Print version information on standard output and exit successfully.
36
On GNU/Linux, chroot detection is not possible as root. This works correctly
37
on GNU/Hurd and GNU/kFreeBSD.