summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetup-interfaces.in5
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