diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-05-02 13:29:57 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-05-02 13:29:57 -0500 |
commit | 21e92e6ea910fd32cb6f6ee28621d489981fd76c (patch) | |
tree | 63bef96ec19c7b18c1feb09156e5b0e58f014922 /pcr/spl-git/spl.install | |
parent | 607f0124ed64cfeff9976dffb0650702b54a298d (diff) |
Removing spl-git. Use spl-dkms instead
Diffstat (limited to 'pcr/spl-git/spl.install')
-rw-r--r-- | pcr/spl-git/spl.install | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/pcr/spl-git/spl.install b/pcr/spl-git/spl.install deleted file mode 100644 index e316e7542..000000000 --- a/pcr/spl-git/spl.install +++ /dev/null @@ -1,37 +0,0 @@ -post_install() { - check_hostid - run_depmod -} - -post_remove() { - run_depmod -} - -post_upgrade() { - check_hostid - run_depmod -} - -check_hostid() { - # Check /etc/hostid to see if it set to the sentinel value, see - # https://wiki.archlinux.org/index.php/ZFS for more information. - HOSTID=$(hostid) - if [ "0x$HOSTID" == "0xffffffff" ]; then - # Generate a new hostid - : >/etc/hostid - HOSTID=$(hostid) - # hostid is 4 byte little endian - printf $(echo -n $HOSTID | sed 's/\(..\)\(..\)\(..\)\(..\)/\\x\4\\x\3\\x\2\\x\1/') >/etc/hostid - fi -} - -run_depmod() { - echo ">>> Updating module dependencies. Please wait ..." - - _kernel_version_x32_full="4.1.6-gnu-1" - _kernel_version_x64_full="4.1.6-gnu-1" - - [[ $CARCH == "i686" ]] && _kernel_version_full=${_kernel_version_x32_full} || _kernel_version_full=${_kernel_version_x64_full} - - depmod ${_kernel_version_full} -} |