2 # Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/90-update-alternatives
3 # Purpose: set up /etc/alternatives/* according to grml preferences
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 ################################################################################
13 # Too many people don't expect to get that, so use it only for grml-small
14 # avoid "debug: unbound variable":
16 if ifclass GRML_SMALL ; then
18 if [ -r $target/usr/bin/vim.tiny ] ; then
19 # update-alternates does not work without /usr/share/man because
20 # it configures (in our case non-existent) manpages as well :-/
21 # $ROOTCMD update-alternatives --set editor /usr/bin/vim.tiny
22 # $ROOTCMD update-alternatives --set vi /usr/bin/vim.tiny
23 $ROOTCMD ln -sf /etc/alternatives/editor /usr/bin/editor
24 $ROOTCMD ln -sf /usr/bin/vim.tiny /etc/alternatives/editor
25 $ROOTCMD ln -sf /etc/alternatives/vi /usr/bin/vi
26 $ROOTCMD ln -sf /usr/bin/vim.tiny /etc/alternatives/vi
27 $ROOTCMD ln -sf /etc/alternatives/vim /usr/bin/vim
28 $ROOTCMD ln -sf /usr/bin/vim.tiny /etc/alternatives/vim
29 $ROOTCMD ln -sf /etc/alternatives/view /usr/bin/view
30 $ROOTCMD ln -sf /usr/bin/vim.tiny /etc/alternatives/view