Magellan Linux

Diff of /trunk/virtualbox/virtualbox-config.sh

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

revision 1684 by niro, Sun Mar 4 11:32:46 2012 UTC revision 2059 by niro, Wed Jan 30 13:43:50 2013 UTC
# Line 93  done Line 93  done
93    
94  if [[ ${compile} = yes ]]  if [[ ${compile} = yes ]]
95  then  then
96   if [ ! -f ${KERNEL_SOURCES}/include/linux/version.h ]   if [ ! -f ${KERNEL_SOURCES}/include/linux/version.h ] &&
97     [ ! -f ${KERNEL_SOURCES}/include/generated/uapi/linux/version.h ]
98   then   then
99   die "No kernel sources for kernel ${KERNEL_VERSION} found! Aborting."   die "No kernel sources for kernel ${KERNEL_VERSION} found! Aborting."
100   fi   fi
# Line 139  then Line 140  then
140   # calc module dependencies   # calc module dependencies
141   mecho "Calculating module dependencies ..."   mecho "Calculating module dependencies ..."
142   depmod -a ${KERNEL_VERSION}   depmod -a ${KERNEL_VERSION}
143    fi
144    
145   # re-read udev rules to grant the right permissions  # re-read udev rules to grant the right permissions
146   if [[ -x $(which udevadm) ]]  if [[ -x $(type -P udevadm) ]]
147    then
148     mecho "Reloading udev configuration ..."
149     if [ -x /usr/lib/systemd/systemd-udevd ]
150   then   then
151   mecho "Reloading udev configuration ..."   udevadm control --reload
152     else
153   udevadm control --reload-rules   udevadm control --reload-rules
154   fi   fi
155  fi  fi

Legend:
Removed from v.1684  
changed lines
  Added in v.2059