2
# Configure ppp for the target system
3
# Note: netcfg takes care of general networking configuration files
5
# We can only do this after ppp has been installed to ensure correct permissions
6
apt-install ppp || true
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"
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/