Vorbereitung auf upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_X11@5557 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
f856ff65ec
commit
ffd24e21ae
25
etc/init/xdm.conf
Normal file
25
etc/init/xdm.conf
Normal file
|
@ -0,0 +1,25 @@
|
|||
description "Startup autofs System for local configuration files"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
version 1.0
|
||||
emits none special
|
||||
|
||||
start on (runlevel [45] and (started rpc))
|
||||
stop on runlevel [01236]
|
||||
|
||||
console output
|
||||
|
||||
post-start script
|
||||
if [ ! -d /tmp/.ICE-unix ]; then
|
||||
mkdir /tmp/.ICE-unix
|
||||
chown root:root /tmp/.ICE-unix
|
||||
chmod 1777 /tmp/.ICE-unix
|
||||
fi
|
||||
end script
|
||||
|
||||
respawn
|
||||
script
|
||||
if ls /etc/X11/xdm/*.xdm >/dev/null 2>&1; then
|
||||
XDM=`cat /etc/X11/xdm/*.xdm`
|
||||
dbus-launch --exit-with-session $XDM --nodaemon
|
||||
fi
|
||||
end script
|
28
init/genpkg
28
init/genpkg
|
@ -22,19 +22,21 @@
|
|||
#
|
||||
|
||||
WDIR=`pwd`
|
||||
cd etc/init.d
|
||||
chmod 755 xdm
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 2 3 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../xdm K00xdm
|
||||
cd ..
|
||||
done
|
||||
for i in 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../xdm S99xdm
|
||||
cd ..
|
||||
done
|
||||
if [ -d /var/install/sysvinit* ]; then
|
||||
cd etc/init.d
|
||||
chmod 755 xdm
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 2 3 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../xdm K00xdm
|
||||
cd ..
|
||||
done
|
||||
for i in 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../xdm S99xdm
|
||||
cd ..
|
||||
done
|
||||
fi
|
||||
cd ../X11
|
||||
chmod 755 xdm/Xsession
|
||||
chmod 755 xinit/xinitrc
|
||||
|
|
Loading…
Reference in New Issue
Block a user