diff --git a/etc/init/xdm.conf b/etc/init/xdm.conf new file mode 100644 index 0000000..206e4a1 --- /dev/null +++ b/etc/init/xdm.conf @@ -0,0 +1,25 @@ +description "Startup autofs System for local configuration files" +author "Harald Kueller " +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 diff --git a/init/genpkg b/init/genpkg index 874cf6f..09b0b86 100644 --- a/init/genpkg +++ b/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