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 <hare@suse.de>
master
Hannes Reinecke 2013-11-29 13:13:46 +01:00 committed by Harald Hoyer
parent 61c0665dad
commit dda7ae7dcd
1 changed files with 1 additions and 0 deletions

View File

@ -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