diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-03-28 10:51:37 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-03-28 10:51:37 +0100 |
commit | 023216ec92d254697059c24855b56adeafdef9c5 (patch) | |
tree | 58de8fe16390fbc4b872dd320496e084ccf350c3 | |
parent | 4f2a1e5848cf3250da1f489d09a29e3969ca1065 (diff) | |
download | bin-023216ec92d254697059c24855b56adeafdef9c5.tar.gz bin-023216ec92d254697059c24855b56adeafdef9c5.tar.xz |
ch: add list command
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | ch | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |