Files
zfs/SNAP/usher
Jay Larson a9b9d9825b The following changes were made:
* Added REPO
  * usher now uses /bin/sh
  * Removed TARGET from usher
  * moved modules to /lib/modules/zfs
2018-04-06 15:28:30 -05:00

30 lines
502 B
Bash
Executable File

#!/bin/sh
set -e
case $1 in
preinst)
exit 0
;;
postinst)
if [ ! -f /etc/default/zfs ]; then
cp /usr/share/zfs/zfs.default /etc/default/zfs
fi
if [ ! -f /usr/share/mkinitramfs/mods/zfs ]; then
cp /usr/share/zfs/zfs.mods /usr/share/mkinitramfs/mods/zfs
fi
if [ ! -f /usr/share/mkinitramfs/bins/zfs ]; then
cp /usr/share/zfs/zfs.bins /usr/share/mkinitramfs/bins/zfs
fi
depmod
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac