#!/bin/sh set -e case $1 in preinst) exit 0 ;; postinst) if [ ! -f /etc/udev/udev.conf ]; then install -m 644 /usr/share/eudev/udev.conf /etc/udev/udev.conf fi if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i \ /proc/1/root 2>/dev/null)" ]; then /etc/init.d/udevd restart fi update-rc enable udevd mkinitramfs all ;; prerm) exit 0 ;; postrm) exit 0 ;; esac