diff options
author | Matthias Hentges <oe@hentges.net> | 2006-04-12 14:05:43 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-12 14:05:43 +0000 |
commit | 6acda169c92c0c8b4c55ecd3742673c7cfd8edcb (patch) | |
tree | 003a0422a9a7f69f8e8840f7df97891581e7cc4b /packages/altboot/files/altboot.rc | |
parent | 8045127a9bda8053ed9a3def163b67b89ccc34a0 (diff) |
altboot:
- Emmit a low-volume beep on alsa devices before running the timeout
- Removed some redirects from init_rootfs
- Fixed CF booting w/ kernel 2.6.16
- Fixed altboot menu on c7x0 running kernel 2.6
Diffstat (limited to 'packages/altboot/files/altboot.rc')
-rw-r--r-- | packages/altboot/files/altboot.rc/playbeep.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/altboot/files/altboot.rc/playbeep.sh b/packages/altboot/files/altboot.rc/playbeep.sh new file mode 100644 index 0000000000..198a87429f --- /dev/null +++ b/packages/altboot/files/altboot.rc/playbeep.sh @@ -0,0 +1,32 @@ +#! /bin/sh +# +# Copyright Matthias Hentges <devel@hentges.net> (c) 2006 +# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license) +# +# Filename: playbeep.sh +# Date: 12-Apr-06 + +if test -x /usr/sbin/alsactl +then + for module in `cat /etc/modules | grep snd | grep -v ^#` + do + #echo "loading $module" + modprobe $module + done + + mount -o remount,rw / + + init_rootfs >/dev/null 2>&1 + + ! test -e /dev/audio && mknod /dev/audio c 14 4 + ! test -e /dev/dsp && mknod /dev/dsp c 14 3 + + mkdir /dev/snd >/dev/null 2>&1 + mknod /dev/snd/controlC0 c 116 0 >/dev/null 2>&1 + mknod /dev/snd/pcmC0D0c c 116 24 >/dev/null 2>&1 + mknod /dev/snd/pcmC0D0p c 116 16 >/dev/null 2>&1 + mknod /dev/snd/timer c 116 33 >/dev/null 2>&1 + /usr/sbin/alsactl restore >/dev/null 2>&1 + + test -e /usr/share/sounds/beep.raw && cat /usr/share/sounds/beep.raw > /dev/dsp +fi |