summaryrefslogtreecommitdiff
path: root/packages/initscripts
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2005-07-22 12:51:12 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-22 12:51:12 +0000
commiteef260859916b998e0ff64c12a186ff386ca6051 (patch)
treefbe522ec795173e1530e80dd49a393d4d037db27 /packages/initscripts
parent33915eef51db1dd1f6e43bb61c92eb30c68b51b7 (diff)
initscripts: do the keymap stuff a bit less generic to make it play
more nice with machies and distributions that don't need it
Diffstat (limited to 'packages/initscripts')
-rwxr-xr-x[-rw-r--r--]packages/initscripts/initscripts-1.0/c7x0/keymap-2.6.map0
-rwxr-xr-x[-rw-r--r--]packages/initscripts/initscripts-1.0/keymap0
-rw-r--r--packages/initscripts/initscripts_1.0.bb28
3 files changed, 19 insertions, 9 deletions
diff --git a/packages/initscripts/initscripts-1.0/c7x0/keymap-2.6.map b/packages/initscripts/initscripts-1.0/c7x0/keymap-2.6.map
index dc7fa37401..dc7fa37401 100644..100755
--- a/packages/initscripts/initscripts-1.0/c7x0/keymap-2.6.map
+++ b/packages/initscripts/initscripts-1.0/c7x0/keymap-2.6.map
diff --git a/packages/initscripts/initscripts-1.0/keymap b/packages/initscripts/initscripts-1.0/keymap
index 792a31d6da..792a31d6da 100644..100755
--- a/packages/initscripts/initscripts-1.0/keymap
+++ b/packages/initscripts/initscripts-1.0/keymap
diff --git a/packages/initscripts/initscripts_1.0.bb b/packages/initscripts/initscripts_1.0.bb
index 32cfc6c7a6..f61f1e8128 100644
--- a/packages/initscripts/initscripts_1.0.bb
+++ b/packages/initscripts/initscripts_1.0.bb
@@ -32,11 +32,14 @@ SRC_URI = "file://halt \
file://device_table.txt \
file://populate-volatile.sh \
file://volatiles \
- file://keymap \
- file://keymap*.map"
+ file://keymap"
-SRC_URI_append_arm = " file://alignment.sh"
-SRC_URI_append_openzaurus = " file://checkversion"
+SRC_URI_append_arm = " file://alignment.sh"
+SRC_URI_append_openzaurus = " file://checkversion"
+SRC_URI_append_c7x0 = " file://keymap-*.map"
+SRC_URI_append_tosa = " file://keymap-*.map"
+SRC_URI_append_akita = " file://keymap-*.map"
+SRC_URI_append_spitz = " file://keymap-*.map"
def read_kernel_version(d):
import bb
@@ -93,14 +96,23 @@ do_install () {
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
+ chmod 0755 ${D}${sysconfdir}/init.d/checkversion
+ ln -sf ../init.d/checkversion ${D}${sysconfdir}/rcS.d/S01version
fi
+ case ${MACHINE} in
+ c7x0 | tosa | spitz | akita )
+ install -m 0755 ${WORKDIR}/keymap ${D}${sysconfdir}/init.d
+ ln -sf ../init.d/keymap ${D}${sysconfdir}/rcS.d/S00keymap
+ install -m 0644 ${WORKDIR}/keymap-*.map ${D}${sysconfdir}
+ ;;
+ *)
+ ;;
+ esac
+
install -m 0755 ${WORKDIR}/banner ${D}${sysconfdir}/init.d/banner
install -m 0755 ${WORKDIR}/devices ${D}${sysconfdir}/init.d/devices
install -m 0755 ${WORKDIR}/umountfs ${D}${sysconfdir}/init.d/umountfs
- install -m 0755 ${WORKDIR}/keymap ${D}${sysconfdir}/init.d/keymap
#
# Create runlevel links
#
@@ -119,7 +131,6 @@ do_install () {
ln -sf ../init.d/umountnfs.sh ${D}${sysconfdir}/rc0.d/S31umountnfs.sh
# ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc0.d/S40umountfs
ln -sf ../init.d/halt ${D}${sysconfdir}/rc0.d/S90halt
- ln -sf ../init.d/keymap ${D}${sysconfdir}/rcS.d/S00keymap
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
@@ -139,5 +150,4 @@ do_install () {
fi
install -m 0755 ${WORKDIR}/device_table.txt ${D}${sysconfdir}/device_table
- install -m 0644 ${WORKDIR}/keymap*.map ${D}${sysconfdir}
}