From 174c3966cdb671e006c94919fb887d0e966880eb Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 8 May 2007 17:09:37 +0000 Subject: 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 --- initramfs/mkdxsinitrd | 14 +++++++++++--- 1 file 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 -- cgit v1.2.3-55-g7522