diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-28 13:27:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-28 13:31:47 +0000 |
commit | ca0e10950a5db60121ac741f0bad28af9bb504b9 (patch) | |
tree | a9b17ecbfc5b471acc8070f3a5f450dd89184de7 | |
parent | 4e7ab7455206ec157a72d07c40c07f1a299529f1 (diff) | |
download | alpine-conf-ca0e10950a5db60121ac741f0bad28af9bb504b9.zip |
setup-interfaces: use vi as default editor
since nano is not shipped with mini iso.
-rwxr-xr-x | setup-interfaces.in | 5 |
1 files 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 |