From ca0e10950a5db60121ac741f0bad28af9bb504b9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 28 Dec 2010 13:27:55 +0000 Subject: setup-interfaces: use vi as default editor since nano is not shipped with mini iso. --- setup-interfaces.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- cgit v1.2.3