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 |
146 |
if [[ -x $(type -P 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 |