Magellan Linux

Diff of /branches/R11-stable/include/kernel.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10194 by niro, Thu Jan 19 16:19:14 2012 UTC revision 11362 by niro, Sun Mar 4 02:38:41 2012 UTC
# Line 434  kernel_sources_postinstall() Line 434  kernel_sources_postinstall()
434  {  {
435   # check for linux-VERSION/include as the kernel-image installs   # check for linux-VERSION/include as the kernel-image installs
436   # the file Modules.symver in the linux-VERSION directory   # the file Modules.symver in the linux-VERSION directory
437   if [ ! -d ${MROOT}/usr/src/linux-${KPVER}-${KBRANCH}-${KPBUILD}/include ]   if mqueryfeature "kernelsrcunpack" &&
438     [ ! -d ${MROOT}/usr/src/linux-${KPVER}-${KBRANCH}-${KPBUILD}/include ]
439   then   then
440   echo "Unpacking linux-${KPVER}-${KBRANCH}-${KPBUILD} source tarball ... "   echo "Unpacking linux-${KPVER}-${KBRANCH}-${KPBUILD} source tarball ... "
441   tar xvjf ${MROOT}/usr/src/linux-${KPVER}-${KBRANCH}-${KPBUILD}.tar.bz2 -C ${MROOT}/usr/src   tar xvjf ${MROOT}/usr/src/linux-${KPVER}-${KBRANCH}-${KPBUILD}.tar.bz2 -C ${MROOT}/usr/src
442   fi   fi
443    
444   if [ ! -d ${MROOT}/usr/src/kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD} ] &&   if mqueryfeature "kernelsrcunpack" &&
445     [ ! -d ${MROOT}/usr/src/kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD} ] &&
446   [ -f ${MROOT}/usr/src/kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD}.tar.bz2 ]   [ -f ${MROOT}/usr/src/kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD}.tar.bz2 ]
447   then   then
448   echo "Unpacking kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD} source tarball ... "   echo "Unpacking kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD} source tarball ... "
449   tar xvjf ${MROOT}/usr/src/kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD}.tar.bz2 -C ${MROOT}/usr/src   tar xvjf ${MROOT}/usr/src/kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD}.tar.bz2 -C ${MROOT}/usr/src
450   fi   fi
451    
452   # if not exist create linux symlink   # create linux symlink
453   if [ ! -h ${MROOT}/usr/src/linux ]   if mqueryfeature "linuxsymlink"
454   then   then
455   echo "Creating linux -> linux-${KPVER}-${KBRANCH}-${KPBUILD} symlink ... "   echo "Creating linux -> linux-${KPVER}-${KBRANCH}-${KPBUILD} symlink ... "
456   [ ! -d ${MROOT}/usr/src ] && install ${MROOT}/usr/src   [ ! -d ${MROOT}/usr/src ] && install ${MROOT}/usr/src
# Line 456  kernel_sources_postinstall() Line 458  kernel_sources_postinstall()
458   ${MROOT}/usr/src/linux || die   ${MROOT}/usr/src/linux || die
459   fi   fi
460    
461   # if not exist create kernel-modules symlink   # create kernel-modules symlink
462   if [ ! -h ${MROOT}/usr/src/kernel-modules ] &&   if mqueryfeature "linuxsymlink" &&
463   [ -d ${MROOT}/usr/src/kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD} ]   [ -d ${MROOT}/usr/src/kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD} ]
464   then   then
465   echo "Creating kernel-modules -> kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD} symlink ... "   echo "Creating kernel-modules -> kernel-modules-${KPVER}-${KBRANCH}-${KPBUILD} symlink ... "

Legend:
Removed from v.10194  
changed lines
  Added in v.11362