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 |
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 |