author | sandman <sandman> | 2002-12-17 22:23:01 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-12-17 22:23:01 (UTC) |
commit | 0a9d431a77ee7b60c32ccdbefa854d6504df6685 (patch) (unidiff) | |
tree | df9af561612897b61864479ee4f8bd9f754dd9ed /share | |
parent | 8e895c00e6f77d897033e0e473d6e823e684590c (diff) | |
download | opie-0a9d431a77ee7b60c32ccdbefa854d6504df6685.zip opie-0a9d431a77ee7b60c32ccdbefa854d6504df6685.tar.gz opie-0a9d431a77ee7b60c32ccdbefa854d6504df6685.tar.bz2 |
- basic pre-/post session scripts for familiar (OZ has to added here)
- default opie-session (copy this to ~/.opie-session to customize)
-rw-r--r-- | share/opie-login/opie-session | 15 | ||||
-rw-r--r-- | share/opie-login/post-session | 11 | ||||
-rw-r--r-- | share/opie-login/pre-session | 16 |
3 files changed, 42 insertions, 0 deletions
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -x /usr/bin/ssh-agent ]; then | ||
4 | SSHAGENT=/usr/bin/ssh-agent | ||
5 | else | ||
6 | SSHAGENT="" | ||
7 | fi | ||
8 | |||
9 | if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then | ||
10 | export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh | ||
11 | fi | ||
12 | |||
13 | $OPIEDIR/bin/opie-reorgfiles | ||
14 | |||
15 | $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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -e /proc/hal/model ]; then | ||
4 | [ -e /dev/sound/dsp ] && chown root /dev/sound/dsp | ||
5 | [ -e /dev/sound/mixer ] && chown root /dev/sound/mixer | ||
6 | [ -e /dev/touchscreen/0 ] && chown root /dev/touchscreen/0 | ||
7 | [ -e /dev/fb/0 ] && chown root /dev/fb/0 | ||
8 | [ -e /dev/vc/0 ] && chown root /dev/vc/0 | ||
9 | fi | ||
10 | |||
11 | |||
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | USER=$1 | ||
4 | |||
5 | if [ -e /proc/hal/model ]; then | ||
6 | |||
7 | # fix for misconfigured devfsd | ||
8 | chmod +x /dev/sound /dev/touchscreen /dev/fb /dev/vc | ||
9 | |||
10 | [ -e /dev/sound/dsp ] && chown $USER /dev/sound/dsp | ||
11 | [ -e /dev/sound/mixer ] && chown $USER /dev/sound/mixer | ||
12 | [ -e /dev/touchscreen/0 ] && chown $USER /dev/touchscreen/0 | ||
13 | [ -e /dev/fb/0 ] && chown $USER /dev/fb/0 | ||
14 | [ -e /dev/vc/0 ] && chown $USER /dev/vc/0 | ||
15 | fi | ||
16 | |||