Closed sandy-lcq closed 6 years ago
Hm, why would one cat | grep
and then string check for -z
when
if grep -qw drbd /proc/modules; ...
does the same?
Besides that it does not really fix the whole mess. So you don't try to rmmod
(good), but you also don't break the loop (bad), so you run a second retry loop.
This needs a more careful look, I don't take your change, but I will look into it eventually.
Thanks, rck
Account for the case if the DRBD drive is built into the kernel. Otherwise, errors, like the following, will occur:
root@localhost:~# /etc/init.d/drbd stop Stopping all DRBD resources: ERROR: Module drbd does not exist in /proc/modules