~ubuntu-branches/ubuntu/trusty/netcfg/trusty

« back to all changes in this revision

Viewing changes to finish-install.d/55netcfg-network-manager

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2013-10-22 16:18:23 UTC
  • mfrom: (0.1.64 sid)
  • Revision ID: package-import@ubuntu.com-20131022161823-8xs6cg3wwhi3mv0r
Tags: 1.111ubuntu1
* Merge from Debian unstable. Remaining changes:
  - Set default hostname to 'ubuntu'.
  - Set priority for get_domain to high for static configurations.
  - Set priority for get_domain to medium for non-static configurations.
  - Use 'auto <interface>' for all interfaces, dropping allow-hotplug
    which doesn't work with current udev.
  - Set DHCP and DHCPv6 timeout to 30s.
  - Use isc-dhcp-client-udeb on all architectures.
  - Flush all addresses and routes before configuring interfaces
    (LP: #848072)
  - Don't copy /etc/resolv.conf to target if resolvconf is installed.
    (We already write resolvconf configuration to /etc/network/interfaces.)
  - Add a post-base-install hook to detect resolvconf and copy
    /run/resolvconf/resolv.conf to outside the target so that when /run
    is bind-mounted DNS resolving continues to work. (LP: #926447)
  - Apply patch from Alec Warner making netcfg respect netcfg/dhcpv6_timeout
    and running dhclient in one-shot mode (-1). (LP: #917905)
* Fix FTBFS by checking the return value of fgets and fscanf.
* Fix nm-conf to generate a valid NetworkManager static configuration file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Disable 'auto dhcp' interfaces if network-manager is in use.
3
 
set -e
4
 
 
5
 
. /usr/share/debconf/confmodule
6
 
 
7
 
db_get netcfg/network-manager
8
 
if [ "$RET" = true ] && \
9
 
   [ -f /target/usr/lib/NetworkManager/ifblacklist_migrate.sh ]; then
10
 
        NETCFG=1 chroot /target \
11
 
                sh /usr/lib/NetworkManager/ifblacklist_migrate.sh
12
 
fi
13
 
 
14
 
exit 0