X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRML_SMALL%2F90-update-alternatives;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRML_SMALL%2F90-update-alternatives;h=0000000000000000000000000000000000000000;hb=019fbefe5b29bb4e95808163f0cd645640cad30c;hp=afd440d57db02bea4b7af67122a4589780cb0c75;hpb=9a1ee76bc3fa423968d666e36422000e4ee979d6;p=grml-live-grml.git diff --git a/etc/grml/fai/config/scripts/GRML_SMALL/90-update-alternatives b/etc/grml/fai/config/scripts/GRML_SMALL/90-update-alternatives deleted file mode 100755 index afd440d..0000000 --- a/etc/grml/fai/config/scripts/GRML_SMALL/90-update-alternatives +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/90-update-alternatives -# Purpose: set up /etc/alternatives/* according to grml preferences -# 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. -################################################################################ - -set -u -set -e - -## Editor: -# Too many people don't expect to get that, so use it only for grml-small -# avoid "debug: unbound variable": -set +u -if ifclass GRML_SMALL ; then -set -u - if [ -r $target/usr/bin/vim.tiny ] ; then - # update-alternates does not work without /usr/share/man because - # it configures (in our case non-existent) manpages as well :-/ - # $ROOTCMD update-alternatives --set editor /usr/bin/vim.tiny - # $ROOTCMD update-alternatives --set vi /usr/bin/vim.tiny - $ROOTCMD ln -sf /etc/alternatives/editor /usr/bin/editor - $ROOTCMD ln -sf /usr/bin/vim.tiny /etc/alternatives/editor - $ROOTCMD ln -sf /etc/alternatives/vi /usr/bin/vi - $ROOTCMD ln -sf /usr/bin/vim.tiny /etc/alternatives/vi - $ROOTCMD ln -sf /etc/alternatives/vim /usr/bin/vim - $ROOTCMD ln -sf /usr/bin/vim.tiny /etc/alternatives/vim - $ROOTCMD ln -sf /etc/alternatives/view /usr/bin/view - $ROOTCMD ln -sf /usr/bin/vim.tiny /etc/alternatives/view - fi -fi