summaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/editor.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-06 13:44:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-06 13:44:08 +0000
commitfa8637266d490e569fbd4807d82e9142d5b75fd0 (patch)
tree3e21473528bef0771b7c83fc0a487ed821282034 /main/alpine-conf/editor.patch
parent81aa49a3d6105dbd53b600e0d70e2c0de3894202 (diff)
downloadaports-fa8637266d490e569fbd4807d82e9142d5b75fd0.tar.bz2
aports-fa8637266d490e569fbd4807d82e9142d5b75fd0.tar.xz
main/alpine-conf: use vi as default editor
ref #496
Diffstat (limited to 'main/alpine-conf/editor.patch')
-rw-r--r--main/alpine-conf/editor.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/alpine-conf/editor.patch b/main/alpine-conf/editor.patch
new file mode 100644
index 000000000..bec421e5f
--- /dev/null
+++ b/main/alpine-conf/editor.patch
@@ -0,0 +1,27 @@
+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