X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=53a87740b042f6eaaf84dea0f451c08d93abd787;hp=c9e4ff54bff7b685391e88ed1468141258ffc76f;hb=dfd74e94420abcee9588656b83dbf5b1f914bcf1;hpb=1e3aa3c8b960b89100a913e11e23f46df4ec1516 diff --git a/autoconfig.functions b/autoconfig.functions index c9e4ff5..53a8774 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1887,7 +1887,7 @@ config_x_startup(){ # make sure we start X only if startx is used *before* a nostartx option # so it's possible to disable automatic X startup using nostart if checkbootparam 'startx' && ! echo "$CMDLINE" | grep -q 'startx.*nostartx' ; then - if [ -x /usr/X11R6/bin/X ] ; then + if [ -x $(which X) ] ; then if [ -z "$INSTALLED" ] ; then WINDOWMANAGER="$(getbootparam 'startx' 2>>$DEBUG)" if [ -z "$WINDOWMANAGER" ] ; then