commit 2f620d58be01e30f235e472d4bceb6d180d537aa Author: kueller Date: Mon Jan 3 10:48:06 2011 +0000 Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_upstartaddon@5933 504e572c-2e33-0410-9681-be2bf7408885 diff --git a/etc/event.d/autofs b/etc/event.d/autofs new file mode 100644 index 0000000..53dca5a --- /dev/null +++ b/etc/event.d/autofs @@ -0,0 +1,19 @@ +start on started mountfs +stop on stopping mountfs + +console output + +pre-start script + source /etc/init.d/functions + + if grep automount /etc/nsswitch.conf 2>/dev/null|\ + grep files &>/dev/null; then + if [ -f /etc/sysconfig/auto.master ]; then + cat /etc/sysconfig/auto.master|initautomount files file >>/tmp/autofs.log + fi + fi +end script + +post-stop script + kill `ps -ef|grep automount|grep file|awk '{print $2}'` +end script diff --git a/etc/event.d/autofs-nis b/etc/event.d/autofs-nis new file mode 100644 index 0000000..674e37d --- /dev/null +++ b/etc/event.d/autofs-nis @@ -0,0 +1,17 @@ +start on started ypclient +stop on stopping ypclient + +console output + +pre-start script + source /etc/init.d/functions + + if grep automount /etc/nsswitch.conf 2>/dev/null|\ + grep nis &>/dev/null; then + ypcat -k auto.master|initautomount nis yp >>/tmp/autofs.log + fi +end script + +post-stop script + kill `ps -ef|grep automount|grep yp|awk '{print $2}'` +end script diff --git a/etc/event.d/binfmt_misc b/etc/event.d/binfmt_misc new file mode 100644 index 0000000..269c5b9 --- /dev/null +++ b/etc/event.d/binfmt_misc @@ -0,0 +1,47 @@ +# rc - runlevel compatibility +# +# This task guesses what the "default runlevel" should be and starts the +# appropriate script. + +start on started mountfs + +console logged + +script + source /etc/init.d/functions + if modprobe binfmt_misc; then + if ! mount|grep binfmt_misc >/dev/null 2>&1; then + echo -n "Mounting binfmt_misc filesystem" + mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc + evaluate_retval + fi + if [ -f /opt/wine/bin/wine ] && [ ! -f /proc/sys/fs/binfmt_misc/mswin ]; then + echo -n "Setting up binfmt_misc for windows executables" + echo ":mswin:M:0:\\x4d\\x5a\\x90\\x00::/opt/wine/bin/wine:" >/proc/sys/fs/binfmt_misc/register + evaluate_retval + fi + if [ -f /usr/lib64/jdk/bin/java ]; then + JAVAPATH=/usr/lib64/jdk/bin + elif [ -f /usr/lib/jdk/bin/java ]; then + JAVAPATH=/usr/lib/jdk/bin + fi + + if [ "$JAVAPATH" ]; then + if [ ! -f /proc/sys/fs/binfmt_misc/Java ]; then + echo -n "Setting up binfmt_misc for java executables" + echo ":Java:M::\\xca\\xfe\\xba\\xbe::$JAVAPATH/javawrapper:" >/proc/sys/fs/binfmt_misc/register + evaluate_retval + fi + if [ ! -f /proc/sys/fs/binfmt_misc/ExecutableJAR ]; then + echo -n "Setting up binfmt_misc for jar executables" + echo ":ExecutableJAR:E::jar::$JAVAPATH/jarwrapper:">/proc/sys/fs/binfmt_misc/register + evaluate_retval + fi + if [ ! -f /proc/sys/fs/binfmt_misc/Applet ]; then + echo -n "Setting up binfmt_misc for java applets" + echo ":Applet:M::