summaryrefslogtreecommitdiffstats
path: root/initramfs/mkdxsinitrd
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-05-08 19:09:37 +0200
committerDirk von Suchodoletz2007-05-08 19:09:37 +0200
commit174c3966cdb671e006c94919fb887d0e966880eb (patch)
tree2f5494bd1d996d8ea4035c80ccfc803382b0a307 /initramfs/mkdxsinitrd
parentChange in exclude list (do not know exactly if proper place ... because (diff)
downloadcore-174c3966cdb671e006c94919fb887d0e966880eb.tar.gz
core-174c3966cdb671e006c94919fb887d0e966880eb.tar.xz
core-174c3966cdb671e006c94919fb887d0e966880eb.zip
Fix for the "-t" option in mkdxsinitrd and patch to add local additions
to Cards and pcitable (~share/templates/hwdata/{Cards,pcitable}.local) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1029 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/mkdxsinitrd')
-rwxr-xr-xinitramfs/mkdxsinitrd14
1 files changed, 11 insertions, 3 deletions
diff --git a/initramfs/mkdxsinitrd b/initramfs/mkdxsinitrd
index 33355310..196fb007 100755
--- a/initramfs/mkdxsinitrd
+++ b/initramfs/mkdxsinitrd
@@ -309,7 +309,7 @@ cp -a ${themes}* ${INSTDIR}/usr/share/themes
#########################################################################
# End of function declaration
-while getopts :dhk:c:i:r:o:s:f:n:m:S:ut:I:a: a ; do
+while getopts :dhk:c:i:r:o:s:f:n:m:S:tu:I:a: a ; do
case $a in
\:|\?)
case $OPTARG in
@@ -644,11 +644,19 @@ echo "## end of common machine-setup" >>${INSTDIR}/etc/machine-setup
# custom hardware configuration files pcitable.local and Cards.local
# fixme!! New source for these files (instead of templates)!
if [ -f ${SLX_SHARE_PATH}/templates/pcitable.local ] ; then
- cat ${SLX_SHARE_PATH}/templates/pcitable.local >> \
+ cat ${SLX_SHARE_PATH}/templates/pcitable.local > \
+ ${INSTDIR}/usr/share/hwdata/pcitable.new
+ cat ${INSTDIR}/usr/share/hwdata/pcitable >>\
+ ${INSTDIR}/usr/share/hwdata/pcitable.new
+ mv ${INSTDIR}/usr/share/hwdata/pcitable.new \
${INSTDIR}/usr/share/hwdata/pcitable
fi
if [ -f ${SLX_SHARE_PATH}/templates/Cards.local ] ; then
- cat ${SLX_SHARE_PATH}/templates/Cards.local >> \
+ cat ${SLX_SHARE_PATH}/templates/Cards.local > \
+ ${INSTDIR}/usr/share/hwdata/Cards.new
+ cat ${INSTDIR}/usr/share/hwdata/Cards >>\
+ ${INSTDIR}/usr/share/hwdata/Cards.new
+ mv ${INSTDIR}/usr/share/hwdata/Cards.new \
${INSTDIR}/usr/share/hwdata/Cards
fi