aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cpt-chroot10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/cpt-chroot b/contrib/cpt-chroot
index fa66e84..2f7eee7 100755
--- a/contrib/cpt-chroot
+++ b/contrib/cpt-chroot
@@ -1,6 +1,16 @@
#!/bin/sh -e
# Enter a chroot
+## SYNOPSIS:
+## .Nm cpt-chroot
+## .Op Ar dir
+
+## DESCRIPTION:
+## .Nm
+## is a wrapper script to chroot inside other root filesystems. It automatically
+## mounts important filesystems in to the chroot directory, and unmounts them
+## when the user exits the chroot and cleans up leftover host files.
+
log() {
printf '\033[32m->\033[m %s.\n' "$*"
}