From 0bf00343d2e133d2b31b27a82426716cfa4c112a Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 10 Aug 2009 13:12:27 +0200 Subject: [PATCH] 90-update-alternatives: activate wm-ng only if it is registered as x-window-manager --- etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives b/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives index 234e56a..67f0998 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives +++ b/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives @@ -51,7 +51,10 @@ if [ -r $target/usr/bin/w3m ] ; then fi if [ -r $target/usr/bin/wm-ng ] ; then - $ROOTCMD update-alternatives --set x-window-manager /usr/bin/wm-ng + # 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 ################################################################# -- 2.1.4