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 ################################################################################
12 if [ -r $target/usr/bin/vim.basic ] ; then
13 $ROOTCMD update-alternatives --set editor /usr/bin/vim.basic
14 $ROOTCMD update-alternatives --set vi /usr/bin/vim.basic
15 $ROOTCMD update-alternatives --set vim /usr/bin/vim.basic
16 $ROOTCMD update-alternatives --set view /usr/bin/vim.basic
19 if [ -r $target/usr/bin/vim.gtk ] ; then
20 $ROOTCMD update-alternatives --set editor /usr/bin/vim.gtk
21 $ROOTCMD update-alternatives --set vi /usr/bin/vim.gtk
22 $ROOTCMD update-alternatives --set vim /usr/bin/vim.gtk
23 $ROOTCMD update-alternatives --set view /usr/bin/vim.gtk
26 if [ -r $target/usr/bin/uxterm ] ; then
27 $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/uxterm
28 elif [ -r $target/usr/bin/xterm ] ; then
29 $ROOTCMD update-alternatives --set x-terminal-emulator /usr/bin/xterm
32 if [ -r $target/etc/X11/cursors/whiteglass.theme ] ; then
33 $ROOTCMD update-alternatives --set x-cursor-theme /etc/X11/cursors/whiteglass.theme
36 if [ -r $target/usr/bin/iceweasel ] || [ -L $target/usr/bin/iceweasel ] ; then
37 $ROOTCMD update-alternatives --set x-www-browser /usr/bin/iceweasel
40 if [ -r $target/usr/bin/w3m ] ; then
41 $ROOTCMD update-alternatives --set www-browser /usr/bin/w3m
44 if [ -r $target/usr/bin/wm-ng ] ; then
45 # activate wm-ng only if it is registered as x-window-manager:
46 if $ROOTCMD update-alternatives --list x-window-manager | grep -q wm-ng ; then
47 $ROOTCMD update-alternatives --set x-window-manager /usr/bin/wm-ng
51 # sadly isn't available via update-alternates, anyway - use
52 # ntfs-3g (if available) as default for ntfs
53 if [ -r $target/sbin/mount.ntfs-3g ] || [ -L $target/sbin/mount.ntfs-3g ] ; then
54 $ROOTCMD ln -sf /sbin/mount.ntfs-3g /sbin/mount.ntfs
57 ## END OF FILE #################################################################
58 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2