X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=8ae71d1a66b8e45855e5f70c2ccbfa536c011282;hp=7638ecca97edf38059723f8a3c19305b52f272a3;hb=eedf0cbce6d2f8f5723a6716beb20099317235dc;hpb=20365ddcfab071d7447b346a6ebf804b56d394b6 diff --git a/autoconfig.functions b/autoconfig.functions index 7638ecc..8ae71d1 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1317,6 +1317,10 @@ if checkbootparam 'startx' && ! echo "$CMDLINE" | grep -q 'startx.*nostartx' ; t einfo "Setting up and invoking grml-x ${WINDOWMANAGER}. Just exit X windows system to get full featured consoles." config_userlocal if $SYSTEMD ; then + if [ -n "$WINDOWMANAGER" ] ; then + mkdir -p /var/run/grml-x/ + echo "$WINDOWMANAGER" > /var/run/grml-x/window-manager + fi chvt 7 return fi