summaryrefslogtreecommitdiff
path: root/listisos.sh
diff options
context:
space:
mode:
Diffstat (limited to 'listisos.sh')
-rwxr-xr-xlistisos.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/listisos.sh b/listisos.sh
new file mode 100755
index 0000000..1aef8f9
--- /dev/null
+++ b/listisos.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+ISOINFOS=($(find distro -name isoinfo))
+for _isoinfo in "${ISOINFOS[@]}"
+do
+ _distrobase="$(cut -d'/' -f1-2 <<< "$_isoinfo")"
+ _distroisodir="$(dirname $_isoinfo | cut -d'/' -f2-)"
+ if [ -f "$_distrobase/distroinfo" ]; then
+ source "$_distrobase/distroinfo"
+ else
+ continue
+ fi
+ source "$_isoinfo"
+ if [ -n "$ISONAME" ]; then
+ echo "$_distroisodir: $ISONAME"
+ fi
+done
+