projects
/
grml-autoconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e2889f3
)
startx: share selected window manager via /var/run/grml-x/window-manager
author
Michael Prokop
<mika@grml.org>
Sun, 28 May 2017 17:49:48 +0000
(19:49 +0200)
committer
Michael Prokop
<mika@grml.org>
Sun, 28 May 2017 17:49:48 +0000
(19:49 +0200)
Closes grml/grml#44
autoconfig.functions
patch
|
blob
|
history
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
7638ecc
..
8ae71d1
100755
(executable)
--- 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
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
chvt 7
return
fi