X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F90-update-alternatives;h=67f0998aedc90fba390ecbfd7edcaf065febe15e;hp=234e56a979955c14c561152eba16acc713be1b3a;hb=0bf00343d2e133d2b31b27a82426716cfa4c112a;hpb=416c56c5eb524416159001cc975e1cb88226d341 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 #################################################################