From 0a9d431a77ee7b60c32ccdbefa854d6504df6685 Mon Sep 17 00:00:00 2001 From: sandman Date: Tue, 17 Dec 2002 22:23:01 +0000 Subject: - basic pre-/post session scripts for familiar (OZ has to added here) - default opie-session (copy this to ~/.opie-session to customize) --- (limited to 'share') diff --git a/share/opie-login/opie-session b/share/opie-login/opie-session new file mode 100644 index 0000000..f2425f6 --- a/dev/null +++ b/share/opie-login/opie-session @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ -x /usr/bin/ssh-agent ]; then + SSHAGENT=/usr/bin/ssh-agent +else + SSHAGENT="" +fi + +if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then + export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh +fi + +$OPIEDIR/bin/opie-reorgfiles + +$SSHAGENT $OPIEDIR/bin/qpe diff --git a/share/opie-login/post-session b/share/opie-login/post-session new file mode 100644 index 0000000..cc0030e --- a/dev/null +++ b/share/opie-login/post-session @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ -e /proc/hal/model ]; then + [ -e /dev/sound/dsp ] && chown root /dev/sound/dsp + [ -e /dev/sound/mixer ] && chown root /dev/sound/mixer + [ -e /dev/touchscreen/0 ] && chown root /dev/touchscreen/0 + [ -e /dev/fb/0 ] && chown root /dev/fb/0 + [ -e /dev/vc/0 ] && chown root /dev/vc/0 +fi + + diff --git a/share/opie-login/pre-session b/share/opie-login/pre-session new file mode 100644 index 0000000..8219f94 --- a/dev/null +++ b/share/opie-login/pre-session @@ -0,0 +1,16 @@ +#!/bin/sh + +USER=$1 + +if [ -e /proc/hal/model ]; then + + # fix for misconfigured devfsd + chmod +x /dev/sound /dev/touchscreen /dev/fb /dev/vc + + [ -e /dev/sound/dsp ] && chown $USER /dev/sound/dsp + [ -e /dev/sound/mixer ] && chown $USER /dev/sound/mixer + [ -e /dev/touchscreen/0 ] && chown $USER /dev/touchscreen/0 + [ -e /dev/fb/0 ] && chown $USER /dev/fb/0 + [ -e /dev/vc/0 ] && chown $USER /dev/vc/0 +fi + -- cgit v0.9.0.2