summaryrefslogtreecommitdiffstats
path: root/PCBSD/pc-sysinstall/backend-query/list-components.sh
diff options
context:
space:
mode:
Diffstat (limited to 'PCBSD/pc-sysinstall/backend-query/list-components.sh')
-rwxr-xr-xPCBSD/pc-sysinstall/backend-query/list-components.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/PCBSD/pc-sysinstall/backend-query/list-components.sh b/PCBSD/pc-sysinstall/backend-query/list-components.sh
new file mode 100755
index 0000000..6833dc7
--- /dev/null
+++ b/PCBSD/pc-sysinstall/backend-query/list-components.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# Script which lists the available components for this release
+###########################################################################
+
+. ${PROGDIR}/backend/functions.sh
+
+echo "Available Components:"
+
+cd ${COMPDIR}
+for i in `ls -d *`
+do
+ if [ -e "${i}/component.cfg" -a -e "${i}/install.sh" -a -e "${i}/distfiles" ]
+ then
+ NAME="`grep 'name:' ${i}/component.cfg | cut -d ':' -f 2`"
+ DESC="`grep 'description:' ${i}/component.cfg | cut -d ':' -f 2`"
+ TYPE="`grep 'type:' ${i}/component.cfg | cut -d ':' -f 2`"
+ echo " "
+ echo "name: ${i}"
+ echo "desc:${DESC}"
+ echo "type:${TYPE}"
+ if [ -e "${i}/component.png" ]
+ then
+ echo "icon: ${COMPDIR}/${i}/component.png"
+ fi
+ fi
+
+done
+
OpenPOWER on IntegriCloud