X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F90-update-alternatives;h=67f0998aedc90fba390ecbfd7edcaf065febe15e;hp=a194055ef67a8e29d0edce5e0e1dc0edc081fdf9;hb=0bf00343d2e133d2b31b27a82426716cfa4c112a;hpb=452816601c78128f1a021d8df426b229c0249a5b diff --git a/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives b/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives index a194055..67f0998 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives +++ b/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives @@ -4,7 +4,6 @@ # 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. -# Latest change: Mon Sep 29 14:16:38 CEST 2008 [mika] ################################################################################ set -u @@ -21,10 +20,10 @@ set -u # 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 /usr/bin/editor /etc/alternatives/editor - $ROOTCMD ln -sf /etc/alternatives/editor /usr/bin/vim.tiny - $ROOTCMD ln -sf /usr/bin/vi /etc/alternatives/vi - $ROOTCMD ln -sf /etc/alternatives/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 fi fi @@ -51,5 +50,12 @@ if [ -r $target/usr/bin/w3m ] ; then $ROOTCMD update-alternatives --set www-browser /usr/bin/w3m fi +if [ -r $target/usr/bin/wm-ng ] ; then + # activate wm-ng only if it is registered as x-window-manager: + if update-alternatives --list x-window-manager | grep -q wm-ng ; then + $ROOTCMD update-alternatives --set x-window-manager /usr/bin/wm-ng + fi +fi + ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3