Checking for existing file is more readable than string comparison --- diff --git a/modules.d/40network/kill-dhclient.sh b/modules.d/40network/kill-dhclient.sh index 19f258a..fcebd32 100755 --- a/modules.d/40network/kill-dhclient.sh +++ b/modules.d/40network/kill-dhclient.sh @@ -1,5 +1,5 @@ #!/bin/sh for f in /tmp/dhclient.*.pid; do - [ "$f" != "/tmp/dhclient.*.pid" ] && kill $(cat $f) + [ -e $f ] && kill $(cat $f) done -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html