From 92bdb420d038113414ab1ca62d2776ed579e8251 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 9 Feb 2010 14:41:43 -0800 Subject: Remove vyatta-ofr on upgrade The upgrade process doesn't always remove old vyatta-ofr init script --- debian/vyatta-cfg-system.postinst.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index ec1b293b..b2719bc5 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -194,6 +194,12 @@ cp -f /opt/vyatta/etc/syslog.conf /etc/syslog.conf # this logs unnecessary messages trying to start ddclient rm -f /etc/ppp/ip-up.d/ddclient +# remove old init that should have been cleaned up during upgrade but isn't +if [ -f /etc/init.d/vyatta-ofr ]; then + update-rc.d -f /etc/init.d/vyatta-ofr remove + rm -f /etc/init.d/vyatta-ofr +fi + # Local Variables: # mode: shell-script # sh-indentation: 4 -- cgit v1.2.3