Commit fa863726 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/alpine-conf: use vi as default editor

ref #496
parent 81aa49a3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-conf
pkgver=2.5.4
pkgrel=1
pkgrel=2
pkgdesc="Alpine configuration management scripts"
url=http://git.alpinelinux.org/cgit/$pkgname
depends="openrc"
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch
editor.patch
"
arch="x86 x86_64"
arch="noarch"
license="GPL-2"
_builddir="$srcdir"/$pkgname-$pkgver
......@@ -37,4 +38,5 @@ package() {
done
}
md5sums="91a2b8a150917cc06f6c9ec839b70bb0 alpine-conf-2.5.4.tar.bz2
9245a4bc53b24584d43b3a3f1556c500 0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch"
9245a4bc53b24584d43b3a3f1556c500 0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch
c6f425ae21ff983f94b64eef8c236b22 editor.patch"
commit ca0e10950a5db60121ac741f0bad28af9bb504b9
Author: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue Dec 28 13:27:55 2010 +0000
setup-interfaces: use vi as default editor
since nano is not shipped with mini iso.
diff --git a/setup-interfaces.in b/setup-interfaces.in
index aad042d..b96ee58 100755
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -141,12 +141,11 @@ while [ "$answer" != "yes" ] && [ "$answer" != "no" ] ; do
done
if [ "$answer" = "yes" ]; then
- [ -z "$EDITOR" ] && EDITOR=nano
- case $EDITOR in
+ case "$EDITOR" in
nano) pkg_inst nano;;
vim) pkg_inst vim;;
esac
- $EDITOR interfaces
+ ${EDITOR:-vi} interfaces
fi
mkdir -p $ROOT/etc/network
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment