summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
Diffstat (limited to 'ch')
-rwxr-xr-xch6
1 files changed, 6 insertions, 0 deletions
diff --git a/ch b/ch
index 506f38c..a0b0c77 100755
--- a/ch
+++ b/ch
@@ -5,6 +5,7 @@
# ch install <id> <package files>... install the package files in the chroot
# ch kill all remove all chroots (including master chroot)
# ch update update all chroots
+# ch list lists all existing master chroots
# IDs work like this:
# 64 = 64bit extra
@@ -180,5 +181,10 @@ case $command in
shell) chshell "$1";;
rshell) chrshell "$1";;
install) chinstall "$@";;
+ list)
+ for chrootdir in "$CHROOTS/"*/; do
+ echo "$(basename "$chrootdir")"
+ done
+ ;;
*) printf "Unknown command %s\n" "$command";;
esac