Author: acid Date: 2006-03-16 14:27:29 +0000 (Thu, 16 Mar 2006) New Revision: 117 Modified: trunk/xen-3.0/debian/xen-utils-3.0.postinst trunk/xen-3.0/debian/xen-utils-3.0.postrm Log: - add priority to the udev file - create the rules.d link only on install Modified: trunk/xen-3.0/debian/xen-utils-3.0.postinst ==================================================================--- trunk/xen-3.0/debian/xen-utils-3.0.postinst 2006-03-16 10:02:12 UTC (rev 116) +++ trunk/xen-3.0/debian/xen-utils-3.0.postinst 2006-03-16 14:27:29 UTC (rev 117) @@ -5,8 +5,8 @@ case "$1" in configure) # Set up udev rules symlink - L="/etc/udev/rules.d/xen-backend.rules" - [ -e "$L" ] || [ -L "$L" ] || ln -s ../xen-backend.rules "$L" + L="/etc/udev/rules.d/z60_xen-backend.rules" + [ ! -z "$2"] || [ -e "$L" ] || [ -L "$L" ] || ln -s ../xen-backend.rules "$L" XENSTORED_DIR="/var/lib/xenstored" [ ! -d "${XENSTORED_DIR}" ] && install -d -m 0700 "${XENSTORED_DIR}" Modified: trunk/xen-3.0/debian/xen-utils-3.0.postrm ==================================================================--- trunk/xen-3.0/debian/xen-utils-3.0.postrm 2006-03-16 10:02:12 UTC (rev 116) +++ trunk/xen-3.0/debian/xen-utils-3.0.postrm 2006-03-16 14:27:29 UTC (rev 117) @@ -5,8 +5,8 @@ case "$1" in purge) # Remove udev rules symlink - L="/etc/udev/rules.d/xen-backend.rules" - [ -L "$L" ] && rm -f "$L" + L="/etc/udev/rules.d/z60_xen-backend.rules" + [ -L "$L" ] && rm "$L" XENSTORED_DIR="/var/lib/xenstored" [ -d "${XENSTORED_DIR}" ] && rm -r "${XENSTORED_DIR}"