summaryrefslogtreecommitdiffstats
path: root/meta/packages
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-21 12:19:17 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-21 12:19:17 +0000
commite38a607f952a255a1f3b2e42f722b6ceabeb5396 (patch)
treee827ef6d051ac0025dc46c6de52a6d82566cbc5d /meta/packages
parentad790e96c6264a8a2007855fdab5f16aa37745fa (diff)
downloadpoky-e38a607f952a255a1f3b2e42f722b6ceabeb5396.tar.gz
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
Diffstat (limited to 'meta/packages')
-rw-r--r--meta/packages/initscripts/initscripts-1.0/device_table.txt18
-rw-r--r--meta/packages/initscripts/initscripts-1.0/save-rtc.sh16
-rw-r--r--meta/packages/initscripts/initscripts_1.0.bb10
3 files changed, 41 insertions, 3 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/device_table.txt b/meta/packages/initscripts/initscripts-1.0/device_table.txt
index 35560b4025..a302c5aca3 100644
--- a/meta/packages/initscripts/initscripts-1.0/device_table.txt
+++ b/meta/packages/initscripts/initscripts-1.0/device_table.txt
@@ -160,6 +160,24 @@
160/dev/smtpe2 c 640 0 0 35 130 - - - 160/dev/smtpe2 c 640 0 0 35 130 - - -
161/dev/smtpe3 c 640 0 0 35 131 - - - 161/dev/smtpe3 c 640 0 0 35 131 - - -
162/dev/sndstat c 660 0 29 14 6 - - - 162/dev/sndstat c 660 0 29 14 6 - - -
163/dev/snd/seq c 660 0 0 116 1 - - -
164/dev/snd/timer c 660 0 0 116 33 - - -
165/dev/snd/controlC0 c 660 0 0 116 0 - - -
166/dev/snd/controlC1 c 660 0 0 116 32 - - -
167/dev/snd/controlC2 c 660 0 0 116 64 - - -
168/dev/snd/controlC3 c 660 0 0 116 96 - - -
169/dev/snd/hwC0D0 c 660 0 0 116 4 - - -
170/dev/snd/hwC0D1 c 660 0 0 116 5 - - -
171/dev/snd/hwC0D2 c 660 0 0 116 6 - - -
172/dev/snd/hwC0D3 c 660 0 0 116 7 - - -
173/dev/snd/pcmC0D0c c 660 0 0 116 24 - - -
174/dev/snd/pcmC0D0p c 660 0 0 116 16 - - -
175/dev/snd/pcmC0D1c c 660 0 0 116 25 - - -
176/dev/snd/pcmC0D1p c 660 0 0 116 17 - - -
177/dev/snd/pcmC0D2c c 660 0 0 116 26 - - -
178/dev/snd/pcmC0D2p c 660 0 0 116 18 - - -
179/dev/snd/pcmC0D3c c 660 0 0 116 27 - - -
180/dev/snd/pcmC0D3p c 660 0 0 116 19 - - -
163/dev/st0 c 660 0 11 9 0 - - - 181/dev/st0 c 660 0 11 9 0 - - -
164/dev/st0a c 660 0 11 9 96 - - - 182/dev/st0a c 660 0 11 9 96 - - -
165/dev/st0l c 660 0 11 9 32 - - - 183/dev/st0l c 660 0 11 9 32 - - -
diff --git a/meta/packages/initscripts/initscripts-1.0/save-rtc.sh b/meta/packages/initscripts/initscripts-1.0/save-rtc.sh
new file mode 100644
index 0000000000..d06aa6d569
--- /dev/null
+++ b/meta/packages/initscripts/initscripts-1.0/save-rtc.sh
@@ -0,0 +1,16 @@
1#! /bin/sh
2#
3# Copyright Matthias Hentges <devel@hentges.net> (c) 2006
4# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
5#
6# Filename: save-rtc.sh
7# Date: 03-Jul-06
8
9
10# Update the timestamp, if there is already one
11if test -e /etc/timestamp
12then
13 echo "Will restore RCT from /etc/timestamp on next boot"
14 echo "Delete that file to disable this feature."
15 date +%2m%2d%2H%2M%Y > /etc/timestamp
16fi
diff --git a/meta/packages/initscripts/initscripts_1.0.bb b/meta/packages/initscripts/initscripts_1.0.bb
index 222c1eee7c..5f59bf9d7b 100644
--- a/meta/packages/initscripts/initscripts_1.0.bb
+++ b/meta/packages/initscripts/initscripts_1.0.bb
@@ -5,7 +5,7 @@ DEPENDS = "makedevs"
5DEPENDS_openzaurus = "makedevs virtual/kernel" 5DEPENDS_openzaurus = "makedevs virtual/kernel"
6RDEPENDS = "makedevs" 6RDEPENDS = "makedevs"
7LICENSE = "GPL" 7LICENSE = "GPL"
8PR = "r73" 8PR = "r74"
9 9
10SRC_URI = "file://halt \ 10SRC_URI = "file://halt \
11 file://ramdisk \ 11 file://ramdisk \
@@ -30,7 +30,8 @@ SRC_URI = "file://halt \
30 file://sysfs.sh \ 30 file://sysfs.sh \
31 file://device_table.txt \ 31 file://device_table.txt \
32 file://populate-volatile.sh \ 32 file://populate-volatile.sh \
33 file://volatiles " 33 file://volatiles \
34 file://save-rtc.sh"
34 35
35SRC_URI_append_arm = " file://alignment.sh" 36SRC_URI_append_arm = " file://alignment.sh"
36SRC_URI_append_openzaurus = " file://checkversion" 37SRC_URI_append_openzaurus = " file://checkversion"
@@ -81,6 +82,7 @@ do_install () {
81 install -m 0755 ${WORKDIR}/devpts ${D}${sysconfdir}/default 82 install -m 0755 ${WORKDIR}/devpts ${D}${sysconfdir}/default
82 install -m 0755 ${WORKDIR}/sysfs.sh ${D}${sysconfdir}/init.d 83 install -m 0755 ${WORKDIR}/sysfs.sh ${D}${sysconfdir}/init.d
83 install -m 0755 ${WORKDIR}/populate-volatile.sh ${D}${sysconfdir}/init.d 84 install -m 0755 ${WORKDIR}/populate-volatile.sh ${D}${sysconfdir}/init.d
85 install -m 0755 ${WORKDIR}/save-rtc.sh ${D}${sysconfdir}/init.d
84 install -m 0644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/00_core 86 install -m 0644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/00_core
85 if [ "${TARGET_ARCH}" = "arm" ]; then 87 if [ "${TARGET_ARCH}" = "arm" ]; then
86 install -m 0755 ${WORKDIR}/alignment.sh ${D}${sysconfdir}/init.d 88 install -m 0755 ${WORKDIR}/alignment.sh ${D}${sysconfdir}/init.d
@@ -89,7 +91,7 @@ do_install () {
89# Install device dependent scripts 91# Install device dependent scripts
90# 92#
91 93
92 if [ "${DISTRO}" == "openzaurus" ]; then 94 if [ "${DISTRO}" = "openzaurus" ]; then
93 cat ${WORKDIR}/checkversion | sed -e "s,VERSION,${KERNEL_VERSION}-${DISTRO_VERSION}," > ${D}${sysconfdir}/init.d/checkversion 95 cat ${WORKDIR}/checkversion | sed -e "s,VERSION,${KERNEL_VERSION}-${DISTRO_VERSION}," > ${D}${sysconfdir}/init.d/checkversion
94 chmod 0755 ${D}${sysconfdir}/init.d/checkversion 96 chmod 0755 ${D}${sysconfdir}/init.d/checkversion
95 ln -sf ../init.d/checkversion ${D}${sysconfdir}/rcS.d/S01version 97 ln -sf ../init.d/checkversion ${D}${sysconfdir}/rcS.d/S01version
@@ -118,6 +120,8 @@ do_install () {
118 ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc0.d/S40umountfs 120 ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc0.d/S40umountfs
119 # udev will run at S55 if installed 121 # udev will run at S55 if installed
120 ln -sf ../init.d/halt ${D}${sysconfdir}/rc0.d/S90halt 122 ln -sf ../init.d/halt ${D}${sysconfdir}/rc0.d/S90halt
123 ln -sf ../init.d/save-rtc.sh ${D}${sysconfdir}/rc0.d/S25save-rtc.sh
124 ln -sf ../init.d/save-rtc.sh ${D}${sysconfdir}/rc6.d/S25save-rtc.sh
121 ln -sf ../init.d/banner ${D}${sysconfdir}/rcS.d/S02banner 125 ln -sf ../init.d/banner ${D}${sysconfdir}/rcS.d/S02banner
122 ln -sf ../init.d/checkroot.sh ${D}${sysconfdir}/rcS.d/S10checkroot.sh 126 ln -sf ../init.d/checkroot.sh ${D}${sysconfdir}/rcS.d/S10checkroot.sh
123# ln -sf ../init.d/checkfs.sh ${D}${sysconfdir}/rcS.d/S30checkfs.sh 127# ln -sf ../init.d/checkfs.sh ${D}${sysconfdir}/rcS.d/S30checkfs.sh