41
by Clint Adams
ischroot utility by Aurelien Jarno to detect chrootedness. |
1 |
.\" -*- nroff -*- |
42
by Clint Adams
* tempfile.1: state in the man page that tempfile is |
2 |
.TH ISCHROOT 1 "30 May 2011" "Debian" |
41
by Clint Adams
ischroot utility by Aurelien Jarno to detect chrootedness. |
3 |
.SH NAME |
4 |
ischroot \- detect if running in a chroot
|
|
5 |
.SH SYNOPSIS |
|
6 |
.B ischroot |
|
7 |
[\-\-default\-false] [\-\-default\-true] [\-\-help] [\-\-version] |
|
8 |
.SH DESCRIPTION |
|
9 |
.PP
|
|
10 |
.B ischroot |
|
11 |
detects if it is currently running in a chroot. The exit status is: |
|
12 |
.TP
|
|
13 |
0 |
|
14 |
if currently running in a chroot |
|
15 |
.TP
|
|
16 |
1 |
|
17 |
if currently not running in a chroot |
|
18 |
.TP
|
|
19 |
2 |
|
42
by Clint Adams
* tempfile.1: state in the man page that tempfile is |
20 |
if the detection is not possible (On GNU/Linux this happens if the |
21 |
script is not run as root). |
|
41
by Clint Adams
ischroot utility by Aurelien Jarno to detect chrootedness. |
22 |
.SH OPTIONS |
23 |
.TP
|
|
24 |
.B "-f, --default-false " |
|
25 |
Exit with status 1 if the detection is not possible. |
|
26 |
.TP
|
|
27 |
.B "-t, --default-true " |
|
28 |
Exit with status 0 if the detection is not possible. |
|
29 |
.TP
|
|
30 |
.B "--help" |
|
31 |
Print a usage message on standard output and exit successfully. |
|
32 |
.TP
|
|
33 |
.B "--version" |
|
34 |
Print version information on standard output and exit successfully. |
|
35 |
.SH BUGS |
|
42
by Clint Adams
* tempfile.1: state in the man page that tempfile is |
36 |
On GNU/Linux, chroot detection is not possible when not root. This |
37 |
works correctly on GNU/Hurd and GNU/kFreeBSD. |