Files
eudev/SNAP/usher
Jay Larson 8603d9ecdf The following changes were made:
* Removed modules from Should-Start in init script
  * Added udevadm hwdb --update to usher
2018-10-01 16:54:26 -05:00

24 lines
295 B
Bash
Executable File

#!/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
udevadm hwdb --update
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac