diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-02-28 17:07:49 +0100 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-28 17:52:17 +0000 |
commit | a645b8a4875ee59630b02a494dd000abc6e1719a (patch) | |
tree | 8a8246be39474655970f3031b89402ea0b5326b4 /main/alpine-conf/0001-setup-keymap-keymaps-OpenRC-service-has-been-renamed.patch | |
parent | 05ece0ade3577646c1055ed573d0cbb5ff9b06f9 (diff) | |
download | aports-a645b8a4875ee59630b02a494dd000abc6e1719a.tar.bz2 aports-a645b8a4875ee59630b02a494dd000abc6e1719a.tar.xz |
main/alpine-conf: keymaps OpenRC service has been renamed
Diffstat (limited to 'main/alpine-conf/0001-setup-keymap-keymaps-OpenRC-service-has-been-renamed.patch')
-rw-r--r-- | main/alpine-conf/0001-setup-keymap-keymaps-OpenRC-service-has-been-renamed.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-setup-keymap-keymaps-OpenRC-service-has-been-renamed.patch b/main/alpine-conf/0001-setup-keymap-keymaps-OpenRC-service-has-been-renamed.patch new file mode 100644 index 0000000000..6279666db8 --- /dev/null +++ b/main/alpine-conf/0001-setup-keymap-keymaps-OpenRC-service-has-been-renamed.patch @@ -0,0 +1,47 @@ +From b1febd985fe1b5cd183b19ee5e491fceda0e0a9a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net> +Date: Wed, 28 Feb 2018 17:04:27 +0100 +Subject: [PATCH] setup-keymap: keymaps OpenRC service has been renamed to + loadkmap + +--- + setup-keymap.in | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/setup-keymap.in b/setup-keymap.in +index ebcd29c..21ba2ac 100644 +--- a/setup-keymap.in ++++ b/setup-keymap.in +@@ -5,8 +5,8 @@ PREFIX= + + MAPDIR="$ROOT/usr/share/bkeymaps" + +-if [ -f "$ROOT/etc/conf.d/keymaps" ]; then +- . "$ROOT/etc/conf.d/keymaps" ++if [ -f "$ROOT/etc/conf.d/loadkmap" ]; then ++ . "$ROOT/etc/conf.d/loadkmap" + variant=$(basename "KEYMAP") + variant="${variant%%.*}" + fi +@@ -52,15 +52,15 @@ select_layout() { + + setup_mapfile() { + local name=$(basename "$1") +- local conf="$ROOT/etc/conf.d/keymaps" ++ local conf="$ROOT/etc/conf.d/loadkmap" + mkdir -p "$ROOT/etc/keymap" + mkdir -p "$ROOT/etc/conf.d/" + if cp "$1" "$ROOT/etc/keymap/$name" ; then + [ -f "$conf" ] && sed -i '/^KEYMAP=/d' "$conf" + echo "KEYMAP=/etc/keymap/$name" >> "$conf" + # we actually load the keymap now +- rc-service keymaps restart +- rc-update -q add keymaps boot ++ rc-service loadkmap restart ++ rc-update -q add loadkmap boot + goodbye 0 + fi + } +-- +2.16.2 + |