summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-20 15:01:06 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-20 15:08:01 -0800
commitfb84d7e91bb3d456f1be40267c104e355f37977e (patch)
tree34e031aef7276a7de395009e3b6d5f7d99c95058
parent90b3c8f96073d201523c08e16770a2656fba0304 (diff)
downloadvyatta-cfg-quagga-fb84d7e91bb3d456f1be40267c104e355f37977e.tar.gz
vyatta-cfg-quagga-fb84d7e91bb3d456f1be40267c104e355f37977e.zip
Cleanup old net-rules on upgrade
Bug 6705 (cherry picked from commit 00466b9a779647047ce432b971bf8329b2255126)
-rw-r--r--debian/vyatta-cfg-system.postinst.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index b30b0593..475ae699 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -25,6 +25,11 @@ if ! grep -q '^tss' /etc/passwd; then
adduser --system --group --shell /usr/sbin/nologin --home /var/lib/tpm tss
fi
+# Remove leftover udev files from earlier release
+if [ -d /etc/udev/rules.d/ ]; then
+ rm -f /etc/udev/rules.d/*vyatta-net.rules
+fi
+
# Force screenblanker to be off, it can be enabled later if desired
if [ -f /etc/console-tools/config ]; then
sed -i -e '/^POWERDOWN/s/=.*$/=0/' \