summaryrefslogtreecommitdiff
path: root/pcr/spl-dkms/spl.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-01-29 15:01:20 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-01-29 15:01:20 -0500
commite3ffc5523be982bb32b89d36d15762c5b976cd31 (patch)
treea3516d9201c39c105f0c2d790cf651991a69b5da /pcr/spl-dkms/spl.install
parent443b494d850bdd1bf8b062049ff7eb73cfc0daae (diff)
downloadabslibre-e3ffc5523be982bb32b89d36d15762c5b976cd31.tar.gz
abslibre-e3ffc5523be982bb32b89d36d15762c5b976cd31.tar.bz2
abslibre-e3ffc5523be982bb32b89d36d15762c5b976cd31.zip
Removing zfs-dkms and spl-dkms
Diffstat (limited to 'pcr/spl-dkms/spl.install')
-rw-r--r--pcr/spl-dkms/spl.install16
1 files changed, 0 insertions, 16 deletions
diff --git a/pcr/spl-dkms/spl.install b/pcr/spl-dkms/spl.install
deleted file mode 100644
index 1438151a8..000000000
--- a/pcr/spl-dkms/spl.install
+++ /dev/null
@@ -1,16 +0,0 @@
-post_install() {
- check_hostid
-}
-
-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
-}