summaryrefslogtreecommitdiff
path: root/share/opie-login/pre-session
Unidiff
Diffstat (limited to 'share/opie-login/pre-session') (more/less context) (ignore whitespace changes)
-rw-r--r--share/opie-login/pre-session16
1 files changed, 16 insertions, 0 deletions
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
3USER=$1
4
5if [ -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
15fi
16