Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TBK
aports
Commits
042d94c4
Commit
042d94c4
authored
7 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
main/alpine-conf: tiny setup-keymap enhancement
add useful feature for people who runs it often
parent
957c515e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/alpine-conf/0001-setup-keymap-allow-specify-the-variant-together-with.patch
+36
-0
36 additions, 0 deletions
...etup-keymap-allow-specify-the-variant-together-with.patch
main/alpine-conf/APKBUILD
+4
-2
4 additions, 2 deletions
main/alpine-conf/APKBUILD
with
40 additions
and
2 deletions
main/alpine-conf/0001-setup-keymap-allow-specify-the-variant-together-with.patch
0 → 100644
+
36
−
0
View file @
042d94c4
From be87a08bc2200b80c068347568bea07a4fa09fb7 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Fri, 19 May 2017 14:39:35 +0200
Subject: [PATCH] setup-keymap: allow specify the variant together with layout
Some users may know exactly which variant they want, and instead of
asking them two questions, we accept if users types in the variant at
the first question.
if the variant does not exist, then user is prompted.
---
setup-keymap.in | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/setup-keymap.in b/setup-keymap.in
index 67f89cb..ebcd29c 100644
--- a/setup-keymap.in
+++ b/setup-keymap.in
@@ -38,7 +38,13 @@
select_layout() {
default_read layout "$layout"
if [ "$layout" = "abort" ] || [ "$layout" = "none" ] ; then
goodbye 0
- elif [ -d "$MAPDIR/$layout" ] ; then
+ fi
+ set -- $layout
+ if [ $# -eq 2 ]; then
+ layout="$1"
+ variant="$2"
+ fi
+ if [ -d "$MAPDIR/$layout" ] ; then
return 0
fi
done
--
2.13.0
This diff is collapsed.
Click to expand it.
main/alpine-conf/APKBUILD
+
4
−
2
View file @
042d94c4
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
alpine-conf
pkgname
=
alpine-conf
pkgver
=
3.6.0_rc1
pkgver
=
3.6.0_rc1
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"Alpine configuration management scripts"
pkgdesc
=
"Alpine configuration management scripts"
url
=
http://git.alpinelinux.org/cgit/
$pkgname
url
=
http://git.alpinelinux.org/cgit/
$pkgname
arch
=
"all"
arch
=
"all"
license
=
"MIT"
license
=
"MIT"
depends
=
"openrc>0.13 busybox>=1.26.1-r3"
depends
=
"openrc>0.13 busybox>=1.26.1-r3"
source
=
"http://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-
$pkgver
.tar.xz
source
=
"http://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-
$pkgver
.tar.xz
0001-setup-keymap-allow-specify-the-variant-together-with.patch
"
"
builddir
=
"
$srcdir
"
/
$pkgname
-
$pkgver
builddir
=
"
$srcdir
"
/
$pkgname
-
$pkgver
...
@@ -24,4 +25,5 @@ package() {
...
@@ -24,4 +25,5 @@ package() {
done
done
}
}
sha512sums
=
"3d1b7c18a406791948485cd871942b94a0f2eadd6f1f0e9c87f92fb15750b9b41ffec0d7d2d16361a1e25f029765005e72b266ce48609ea0b7c5e5c99606d04f alpine-conf-3.6.0_rc1.tar.xz"
sha512sums
=
"3d1b7c18a406791948485cd871942b94a0f2eadd6f1f0e9c87f92fb15750b9b41ffec0d7d2d16361a1e25f029765005e72b266ce48609ea0b7c5e5c99606d04f alpine-conf-3.6.0_rc1.tar.xz
67a1d72e45ba74d710a841c0a2671f74f792f6649fb530f86763fe2f10fc0005c644dfdcec25b00bc5eb0b97b2418775e95202269ef3b3f56b6c22044630fb86 0001-setup-keymap-allow-specify-the-variant-together-with.patch"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment