diff options
Diffstat (limited to 'packages/opie-login/files/post-session')
-rw-r--r-- | packages/opie-login/files/post-session | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/opie-login/files/post-session b/packages/opie-login/files/post-session index e69de29bb2..47dc59727f 100644 --- a/packages/opie-login/files/post-session +++ b/packages/opie-login/files/post-session @@ -0,0 +1,22 @@ +#!/bin/sh + +permout () +{ + if [ -e $1 ] + then + chown root $1 + else + echo Warning: $1 does not exist. + return 1 + fi +} + +if [ -e /proc/hal/model ]; then + for i in /dev/sound/dsp /dev/sound/mixer /dev/touchscreen/* /dev/fb/0 /dev/vc/0; do + permout $i + done +else + for i in /dev/dsp /dev/dsp1 /dev/mixer /dev/ts /dev/fb0 /dev/sharp* /dev/collie*; do + permout $i + done +fi |