#!/bin/sh

if [ ! -f /etc/udev/rules.d/99-fuse3.rules ]; then
  cp -p /usr/local/share/fuse3/files/99-fuse3.rules /etc/udev/rules.d
  udevadm control --reload-rules
  udevadm trigger
fi

if [ ! -f /sbin/mount.fuse3 ]; then
  ln -s /usr/local/sbin/mount.fuse3 /sbin/mount.fuse3
fi
