Use /usr/bin/vim.tiny as alternativ for vi
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 90-update-alternatives
1 #!/bin/sh
2 # Filename:      /etc/grml/fai/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 # Latest change: Fri Dec 28 23:14:32 CET 2007 [mika]
8 ################################################################################
9
10 set -u
11 set -e
12
13 if [ -r $target/usr/bin/vim.basic ] ; then
14    $ROOTCMD update-alternatives --set editor /usr/bin/vim.basic
15 fi
16
17 if [ -r $target/usr/bin/vim.tiny ] ; then
18    $ROOTCMD update-alternatives --set vi /usr/bin/vim.tiny
19 fi
20
21 if [ -r $target/usr/bin/uxterm ] ; then
22    $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/uxterm
23 elif [ -r $target/usr/bin/xterm ] ; then
24    $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/xterm
25 fi
26
27 if [ -r $target/etc/X11/cursors/whiteglass.theme ] ; then
28    $ROOTCMD update-alternatives --set x-cursor-theme /etc/X11/cursors/whiteglass.theme
29 fi
30
31 if [ -r $target/usr/bin/iceweasel ] ; then
32    $ROOTCMD update-alternatives --set x-www-browser /usr/bin/iceweasel
33 fi
34
35 if [ -r $target/usr/bin/w3m ] ; then
36    $ROOTCMD update-alternatives --set www-browser /usr/bin/w3m
37 fi
38
39 ## END OF FILE #################################################################
40 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3