From: Hannes Reinecke Date: Fri, 29 Nov 2013 12:13:46 +0000 (+0100) Subject: 95znet: Make installation optional X-Git-Tag: 035~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dda7ae7dcdde7f9a00bbaebc7df7fbd7ed2f8ff0;p=thirdparty%2Fdracut.git 95znet: Make installation optional znet_cio_free is a RedHat-specific tool, so do not install this module on systems where the program is missing. Signed-off-by: Hannes Reinecke --- diff --git a/modules.d/95znet/module-setup.sh b/modules.d/95znet/module-setup.sh index 4c211a978..5012b7769 100755 --- a/modules.d/95znet/module-setup.sh +++ b/modules.d/95znet/module-setup.sh @@ -5,6 +5,7 @@ # called by dracut check() { arch=$(uname -m) + [ -z /sbin/znet_cio_free ] || return 1 [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1 return 0