~ubuntu-branches/ubuntu/trusty/ifupdown-extra/trusty

« back to all changes in this revision

Viewing changes to debian/ifupdown-extra.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Javier Fernández-Sanguino Peña, Javier Fernández-Sanguino Peña
  • Date: 2011-10-14 00:38:29 UTC
  • Revision ID: james.westby@ubuntu.com-20111014003829-0e0hcr38xx3slgh6
Tags: 0.22
[ Javier Fernández-Sanguino Peña ]
* if-up-scripts/check-duplicate-ip:
   - Do not pass aliased interface information to arping since it cannot
     handle it properly (Closes: #644891)
* Handle the configuration file through the use of dpkg-maintscript-helper
  instead of moving it directly to prevent dpkg from raising a conffile
  change prompt on upgrades even if the user has          not made any
  changes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    if [ -e /etc/network/network-routes ] ; then
9
9
    # There was a bug in the package (<< 0.15). We need to
10
10
    # move the file to the new location
11
 
        mv /etc/network/network-routes /etc/network/routes
 
11
        if dpkg-maintscript-helper supports mv_conffile; then
 
12
         dpkg-maintscript-helper mv_conffile \
 
13
            /etc/network/network-routes /etc/network/routes 0.14 -- "$@"
 
14
        fi
12
15
    fi
13
16
  ;;
14
17
esac