initscripts: Add save-rtc script and ALSA manual devices table from OE.dev

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@921 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2006-11-21 12:19:17 +00:00
parent ad790e96c6
commit e38a607f95
3 changed files with 41 additions and 3 deletions

View File

@ -160,6 +160,24 @@
/dev/smtpe2 c 640 0 0 35 130 - - -
/dev/smtpe3 c 640 0 0 35 131 - - -
/dev/sndstat c 660 0 29 14 6 - - -
/dev/snd/seq c 660 0 0 116 1 - - -
/dev/snd/timer c 660 0 0 116 33 - - -
/dev/snd/controlC0 c 660 0 0 116 0 - - -
/dev/snd/controlC1 c 660 0 0 116 32 - - -
/dev/snd/controlC2 c 660 0 0 116 64 - - -
/dev/snd/controlC3 c 660 0 0 116 96 - - -
/dev/snd/hwC0D0 c 660 0 0 116 4 - - -
/dev/snd/hwC0D1 c 660 0 0 116 5 - - -
/dev/snd/hwC0D2 c 660 0 0 116 6 - - -
/dev/snd/hwC0D3 c 660 0 0 116 7 - - -
/dev/snd/pcmC0D0c c 660 0 0 116 24 - - -
/dev/snd/pcmC0D0p c 660 0 0 116 16 - - -
/dev/snd/pcmC0D1c c 660 0 0 116 25 - - -
/dev/snd/pcmC0D1p c 660 0 0 116 17 - - -
/dev/snd/pcmC0D2c c 660 0 0 116 26 - - -
/dev/snd/pcmC0D2p c 660 0 0 116 18 - - -
/dev/snd/pcmC0D3c c 660 0 0 116 27 - - -
/dev/snd/pcmC0D3p c 660 0 0 116 19 - - -
/dev/st0 c 660 0 11 9 0 - - -
/dev/st0a c 660 0 11 9 96 - - -
/dev/st0l c 660 0 11 9 32 - - -

View File

@ -0,0 +1,16 @@
#! /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: save-rtc.sh
# Date: 03-Jul-06
# Update the timestamp, if there is already one
if test -e /etc/timestamp
then
echo "Will restore RCT from /etc/timestamp on next boot"
echo "Delete that file to disable this feature."
date +%2m%2d%2H%2M%Y > /etc/timestamp
fi

View File

@ -5,7 +5,7 @@ DEPENDS = "makedevs"
DEPENDS_openzaurus = "makedevs virtual/kernel"
RDEPENDS = "makedevs"
LICENSE = "GPL"
PR = "r73"
PR = "r74"
SRC_URI = "file://halt \
file://ramdisk \
@ -30,7 +30,8 @@ SRC_URI = "file://halt \
file://sysfs.sh \
file://device_table.txt \
file://populate-volatile.sh \
file://volatiles "
file://volatiles \
file://save-rtc.sh"
SRC_URI_append_arm = " file://alignment.sh"
SRC_URI_append_openzaurus = " file://checkversion"
@ -81,6 +82,7 @@ do_install () {
install -m 0755 ${WORKDIR}/devpts ${D}${sysconfdir}/default
install -m 0755 ${WORKDIR}/sysfs.sh ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/populate-volatile.sh ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/save-rtc.sh ${D}${sysconfdir}/init.d
install -m 0644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/00_core
if [ "${TARGET_ARCH}" = "arm" ]; then
install -m 0755 ${WORKDIR}/alignment.sh ${D}${sysconfdir}/init.d
@ -89,7 +91,7 @@ do_install () {
# Install device dependent scripts
#
if [ "${DISTRO}" == "openzaurus" ]; then
if [ "${DISTRO}" = "openzaurus" ]; then
cat ${WORKDIR}/checkversion | sed -e "s,VERSION,${KERNEL_VERSION}-${DISTRO_VERSION}," > ${D}${sysconfdir}/init.d/checkversion
chmod 0755 ${D}${sysconfdir}/init.d/checkversion
ln -sf ../init.d/checkversion ${D}${sysconfdir}/rcS.d/S01version
@ -118,6 +120,8 @@ do_install () {
ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc0.d/S40umountfs
# udev will run at S55 if installed
ln -sf ../init.d/halt ${D}${sysconfdir}/rc0.d/S90halt
ln -sf ../init.d/save-rtc.sh ${D}${sysconfdir}/rc0.d/S25save-rtc.sh
ln -sf ../init.d/save-rtc.sh ${D}${sysconfdir}/rc6.d/S25save-rtc.sh
ln -sf ../init.d/banner ${D}${sysconfdir}/rcS.d/S02banner
ln -sf ../init.d/checkroot.sh ${D}${sysconfdir}/rcS.d/S10checkroot.sh
# ln -sf ../init.d/checkfs.sh ${D}${sysconfdir}/rcS.d/S30checkfs.sh