]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: make install_keymaps() optionally install more keymaps
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Sep 2018 01:54:28 +0000 (10:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Oct 2018 10:11:21 +0000 (19:11 +0900)
test/test-functions

index dc3b06e22eaa5be03a4c48e502c6dff0cebab1de..e3535af8395410c541062c7d45524b7b6b8becab 100644 (file)
@@ -634,6 +634,16 @@ install_keymaps() {
             [[ -f $i ]] || continue
             inst $i
     done
+
+    # When it takes any argument, then install more keymaps.
+    if [[ -n $1 ]]; then
+        for i in \
+        /usr/lib/kbd/keymaps/i386/*/* \
+        /usr/lib/kbd/keymaps/legacy/i386/*/*; do
+            [[ -f $i ]] || continue
+            inst $i
+        done
+    fi
 }
 
 install_zoneinfo() {