* Upgraded to more recent version of eudev * Added REPO * Removed --disable-static * Added udev.conf * usher now uses /bin/sh * Removed TARGET from usher * usher now checks for chroot and runs udevd restart if not in chroot * usher now executes mkinitramfs
29 lines
434 B
Bash
Executable File
29 lines
434 B
Bash
Executable File
#!/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
|