summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-12-05 19:49:56 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-12-05 21:49:41 +0100
commit2c5994e359da4299ffb0a9e7f3f338002677a904 (patch)
tree39debc843d047f8e75fd85775d3666dd8f1c6d28 /src/core/libs/lib-ui.sh
parent9284637ea853199905f4588cf5fb53b716611f79 (diff)
code cleanup: use bash4 associative arrays for filesystem stuff
now the information about which setup programs for filesystems, label programs, which FS'es can go on which blockdevices, need/can have labels, can be mounted and FS friendly names are in a central place in libs/lib-blockdevices-filesystems.sh. This simplifies the code somewhat where you actually want to work with the filesystems. Also, we only check the available filesystem utilities once at program startup, causing a performance improvement.
Diffstat (limited to 'src/core/libs/lib-ui.sh')
-rw-r--r--src/core/libs/lib-ui.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index ac842bb..8b886fe 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -51,6 +51,10 @@ _getavaildisks()
done
}
+# captitalize first character
+function capitalize () {
+ sed 's/\([a-z]\)\([a-zA-Z0-9]*\)/\u\1\2/g';
+}
set_keymap ()
{