#!/bin/sh

set -e

case $1 in
  preinst)
    exit 0
    ;;
  postinst)
    if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i \
    /proc/1/root 2>/dev/null)" ]; then
      /etc/init.d/udevd restart
    fi
    ;;
  prerm)
    exit 0
    ;;
  postrm)
    exit 0
    ;;
esac
