Magellan Linux

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

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

revision 1686 by niro, Sun Mar 4 12:32:49 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 142  then Line 143  then
143  fi  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  then
148   mecho "Reloading udev configuration ..."   mecho "Reloading udev configuration ..."
149   udevadm control --reload-rules   if [ -x /usr/lib/systemd/systemd-udevd ]
150     then
151     udevadm control --reload
152     else
153     udevadm control --reload-rules
154     fi
155  fi  fi
156    
157  # load the module  # load the module

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