~cyphermox/ubuntu/vivid/ppp/merge-2.4.6

« back to all changes in this revision

Viewing changes to extra/ppp-udeb-postbaseinst

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2014-11-05 05:35:43 UTC
  • mfrom: (2.1.16 sid)
  • Revision ID: mathieu-tl@ubuntu.com-20141105053543-pwkdzpn4zae420uw
* Merge with Debian unstable; remaining changes:
  - debian/patches/load_ppp_generic_if_needed: load ppp_generic kernel
    module if needed.
  - add EAP-TLS/MPPE support patch from Jan Just Keijser.
  - debian/control: add libssl-dev to Build-Depends for the EAP-TLS patch.
* debian/patches/ppp-2.4.5-eaptls-mppe-0.994.patch,
  debian/patches/ppp-2.4.6-eaptls-mppe-0.997.patch: updated the EAP-TLS/MPPE
  support patch to the latest version from its upstream (also refreshed it).
* debian/ppp.preinst: deal with the change in LSB headers start runlevels
  of pppd-dns due to dropping our changes (which are no longer necessary
  since resolvconf is installed in most systems and has been for a while);
  this should probably be kept until the next LTS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
# Configure ppp for the target system
3
 
# Note: netcfg takes care of general networking configuration files
4
 
 
5
 
# We can only do this after ppp has been installed to ensure correct permissions
6
 
apt-install ppp || true
7
 
 
8
 
if [ ! -d /target/etc/ppp/peers ]; then
9
 
        logger -t ppp-udeb "Error: directory /target/etc/ppp/peers does not exist"
10
 
        logger -t ppp-udeb "There may have been an error installing ppp"
11
 
        exit 1
12
 
fi
13
 
 
14
 
# We copy over already existing files, so permissions are preserved
15
 
cp /etc/ppp/*-secrets /target/etc/ppp/
16
 
cp /etc/ppp/peers/provider /target/etc/ppp/peers/