diff options
| author | David M. Syzdek <david@syzdek.net> | 2018-04-27 15:49:53 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2018-04-27 15:49:53 -0800 |
| commit | 2794be0caef224bfa3cf31f4297c5dd133abcdae (patch) | |
| tree | 8a574c6254f010bd3d003a4681c1ebcff76c664b | |
| parent | 29cd4625b8639c3077e95060fed9ced246f35d74 (diff) | |
| download | iperd-2794be0caef224bfa3cf31f4297c5dd133abcdae.tar.gz iperd-2794be0caef224bfa3cf31f4297c5dd133abcdae.tar.bz2 iperd-2794be0caef224bfa3cf31f4297c5dd133abcdae.tar.xz iperd-2794be0caef224bfa3cf31f4297c5dd133abcdae.zip | |
iperd.profile: adding function to list configured versions
| -rw-r--r-- | src/scripts/iperd.profile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scripts/iperd.profile b/src/scripts/iperd.profile index d90bced..97f8b1f 100644 --- a/src/scripts/iperd.profile +++ b/src/scripts/iperd.profile | |||
| @@ -83,6 +83,13 @@ list_cfg_distros() | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | 85 | ||
| 86 | list_cfg_vers() | ||
| 87 | { | ||
| 88 | egrep "^#${1}-" "${CONFIG}" \ | ||
| 89 | |cut -d\# -f2 | ||
| 90 | } | ||
| 91 | |||
| 92 | |||
| 86 | list_distros() | 93 | list_distros() |
| 87 | { | 94 | { |
| 88 | egrep '^[[:space:]]{0,}[a-zA-Z0-9]{1,}[[:space:]]' ${DISTRODIR}/*/option* \ | 95 | egrep '^[[:space:]]{0,}[a-zA-Z0-9]{1,}[[:space:]]' ${DISTRODIR}/*/option* \ |
