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: Mon Sep 29 13:15:35 CEST 2008 [mika]
8 ################################################################################
14 # Too many people don't expect to get that, so use it only for grml-small:
15 if ifclass GRML_SMALL ; then
16 if [ -r $target/usr/bin/vim.tiny ] ; then
17 $ROOTCMD update-alternatives --set editor /usr/bin/vim.tiny
18 $ROOTCMD update-alternatives --set vi /usr/bin/vim.tiny
22 if [ -r $target/usr/bin/vim.basic ] ; then
23 $ROOTCMD update-alternatives --set editor /usr/bin/vim.basic
24 $ROOTCMD update-alternatives --set vi /usr/bin/vim.basic
27 if [ -r $target/usr/bin/uxterm ] ; then
28 $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/uxterm
29 elif [ -r $target/usr/bin/xterm ] ; then
30 $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/xterm
33 if [ -r $target/etc/X11/cursors/whiteglass.theme ] ; then
34 $ROOTCMD update-alternatives --set x-cursor-theme /etc/X11/cursors/whiteglass.theme
37 if [ -r $target/usr/bin/iceweasel ] ; then
38 $ROOTCMD update-alternatives --set x-www-browser /usr/bin/iceweasel
41 if [ -r $target/usr/bin/w3m ] ; then
42 $ROOTCMD update-alternatives --set www-browser /usr/bin/w3m
45 ## END OF FILE #################################################################
46 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3