90-update-alternatives: make sure to run the update-alternatives listing for x-window...
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 90-update-alternatives
index 5aff20d..56a365e 100755 (executable)
@@ -52,7 +52,7 @@ 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
+   if $ROOTCMD update-alternatives --list x-window-manager | grep -q wm-ng ; then
      $ROOTCMD update-alternatives --set x-window-manager /usr/bin/wm-ng
    fi
 fi