mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-18 09:02:04 +01:00
init: take unneeded stuff out of the Xsession code pathway
Review URL: http://chromereview.prom.corp.google.com/1175081 git-svn-id: svn://chrome-svn/chromeos/trunk@67 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
parent
eec554710f
commit
32bdfa9164
@ -415,6 +415,20 @@ sed -i '{ s/xserver_arguments .*/xserver_arguments -nolisten tcp vt01/ }' \
|
|||||||
mv /etc/init.d/rcS /etc/init.d/rcS.orig
|
mv /etc/init.d/rcS /etc/init.d/rcS.orig
|
||||||
ln -s /etc/init.d/chromeos_init.sh /etc/init.d/rcS
|
ln -s /etc/init.d/chromeos_init.sh /etc/init.d/rcS
|
||||||
|
|
||||||
|
# Clean out unneeded Xsession scripts
|
||||||
|
XSESSION_D="/etc/X11/Xsession.d"
|
||||||
|
KEEPERS="20x11-common_process-args 51x11-chromeos-set-startup \
|
||||||
|
90consolekit 99x11-common_start"
|
||||||
|
for script in ${KEEPERS}
|
||||||
|
do
|
||||||
|
mv "$XSESSION_D"/"$script" /tmp
|
||||||
|
done
|
||||||
|
rm -rf "$XSESSION_D"/*
|
||||||
|
for script in ${KEEPERS}
|
||||||
|
do
|
||||||
|
mv /tmp/"$script" "$XSESSION_D"
|
||||||
|
done
|
||||||
|
|
||||||
# Add some tmpfs filesystems to fstab to enable session semantics
|
# Add some tmpfs filesystems to fstab to enable session semantics
|
||||||
cat <<EOF >> /etc/fstab
|
cat <<EOF >> /etc/fstab
|
||||||
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
|
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user