From 526fb7c5808d4fe652167e115ae2ce9798b735d7 Mon Sep 17 00:00:00 2001 From: joeyh Date: Sun, 21 Jan 2007 16:44:16 +0000 Subject: r1967: * dh_installudev: Fix postrm to not fail if the udev symlink is missing. Closes: #406921 --- autoscripts/postrm-udev | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'autoscripts') diff --git a/autoscripts/postrm-udev b/autoscripts/postrm-udev index 15779ca6..b0af6c01 100644 --- a/autoscripts/postrm-udev +++ b/autoscripts/postrm-udev @@ -1,4 +1,5 @@ if [ "$1" = purge ]; then - [ -L /etc/udev/rules.d/#PRIO##FILE# ] && \ - rm /etc/udev/rules.d/#PRIO##FILE# + if [ -L /etc/udev/rules.d/#PRIO##FILE# ]; then + rm /etc/udev/rules.d/#PRIO##FILE# + fi fi -- cgit v1.2.3