30 lines
645 B
Plaintext
30 lines
645 B
Plaintext
![]() |
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
|
||
|
|
||
|
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
|
||
|
else
|
||
|
source /etc/profile
|
||
|
source /root/.bash_profile
|
||
|
export HOME=/root
|
||
|
startx
|
||
|
fi
|
||
|
end script
|