diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/opie-login/files/post-session | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
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 |