142 |
fi |
fi |
143 |
|
|
144 |
# re-read udev rules to grant the right permissions |
# re-read udev rules to grant the right permissions |
145 |
if [[ -x $(which udevadm) ]] |
if [[ -x $(type -P udevadm) ]] |
146 |
then |
then |
147 |
mecho "Reloading udev configuration ..." |
mecho "Reloading udev configuration ..." |
148 |
udevadm control --reload-rules |
if [ -x /usr/lib/systemd/systemd-udevd ] |
149 |
|
then |
150 |
|
udevadm control --reload |
151 |
|
else |
152 |
|
udevadm control --reload-rules |
153 |
|
fi |
154 |
fi |
fi |
155 |
|
|
156 |
# load the module |
# load the module |