diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-09 14:41:43 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-09 14:41:43 -0800 |
commit | 92bdb420d038113414ab1ca62d2776ed579e8251 (patch) | |
tree | 97e06bc19c193fee61d35bd4587b6ab890c27486 | |
parent | 4dc658bd4babb275e1ee06edfe134a35344a2cf1 (diff) | |
download | vyatta-cfg-system-92bdb420d038113414ab1ca62d2776ed579e8251.tar.gz vyatta-cfg-system-92bdb420d038113414ab1ca62d2776ed579e8251.zip |
Remove vyatta-ofr on upgrade
The upgrade process doesn't always remove old vyatta-ofr init script
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 6 |
1 files changed, 6 insertions, 0 deletions
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 |