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
parent
61c0665dad
commit
dda7ae7dcd
|
@ -5,6 +5,7 @@
|
||||||
# called by dracut
|
# called by dracut
|
||||||
check() {
|
check() {
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
[ -z /sbin/znet_cio_free ] || return 1
|
||||||
[ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
|
[ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue