90-update-alternatives: make sure to run the update-alternatives listing for x-window...
authorMichael Prokop <mika@grml.org>
Tue, 7 Dec 2010 19:10:09 +0000 (20:10 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 7 Dec 2010 19:10:09 +0000 (20:10 +0100)
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