#!/bin/sh

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

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