Skip to content

Commit

Permalink
Changed kernel modules detection
Browse files Browse the repository at this point in the history
  • Loading branch information
t0fik committed Aug 26, 2018
1 parent e482444 commit db4604a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zmogrify
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ kver=$1

[[ -z "${kver}" ]] && kver=$(uname -r)

if ! dkms status --kernelver ${kver} | grep -q spl 2>/dev/null; then
if ! dkms status --kernelver ${kver} -m spl | grep -q installed 2>/dev/null; then
splver=$(ls -d /usr/src/spl*| xargs -I{} basename {}|sort -V|tail -n1|cut -d'-' -f2)
dkms install -m spl/$splver --kernelver ${kver}
fi

if ! dkms status --kernelver ${kver} | grep -q zfs 2>/dev/null; then
if ! dkms status --kernelver ${kver} -m zfs | grep -q installed 2>/dev/null; then
zfsver=$(ls -d /usr/src/zfs*| xargs -I{} basename {}|sort -V|tail -n1|cut -d'-' -f2)
dkms install -m zfs/$zfsver --kernelver ${kver}
fi
Expand Down

0 comments on commit db4604a

Please sign in to comment.