X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F90-update-alternatives;h=d67281f57375aa56840ab735ca73b3b305b88bcd;hb=c745e7411722e1b63b1f26caf2806e5bddeae2cc;hp=33646d71c1873f7ed051a5e6f75fea496f84d012;hpb=f9b8a344c4f45000a63b3288ea2cfff1b7508c1c;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives b/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives index 33646d7..d67281f 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives +++ b/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives @@ -4,18 +4,24 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Fri Dec 28 23:14:32 CET 2007 [mika] +# Latest change: Mon Sep 29 13:15:35 CEST 2008 [mika] ################################################################################ set -u set -e -if [ -r $target/usr/bin/vim.basic ] ; then - $ROOTCMD update-alternatives --set editor /usr/bin/vim.basic +## Editor: +# Too many people don't expect to get that, so use it only for grml-small: +if ifclass GRML_SMALL ; then + if [ -r $target/usr/bin/vim.tiny ] ; then + $ROOTCMD update-alternatives --set editor /usr/bin/vim.tiny + $ROOTCMD update-alternatives --set vi /usr/bin/vim.tiny + fi fi -if [ -r $target/usr/bin/vim.tiny ] ; then - $ROOTCMD update-alternatives --set vi /usr/bin/vim.tiny +if [ -r $target/usr/bin/vim.basic ] ; then + $ROOTCMD update-alternatives --set editor /usr/bin/vim.basic + $ROOTCMD update-alternatives --set vi /usr/bin/vim.basic fi if [ -r $target/usr/bin/uxterm ] ; then