# Created by Tobias Powalowski <tpowa@archlinux.org>

install ()
{
    MODULES=""
    BINARIES="poff pon chat plog pppd pppdump pppoe-discovery pppstats"
    FILES=""
    SCRIPT=""
    add_full_dir "/usr/lib/pppd"
    add_dir "/etc/ppp/peers"
    add_file "/usr/share/archboot/ppp/etc/ppp/chap-secrets" "/etc/ppp/chap-secrets"
    add_file "/usr/share/archboot/ppp/etc/ppp/ip-down" "/etc/ppp/ip-down"
    add_file "/usr/share/archboot/ppp/etc/ppp/ip-up" "/etc/ppp/ip-up"
    add_file "/usr/share/archboot/ppp/etc/ppp/options" "/etc/ppp/options"
    add_file "/usr/share/archboot/ppp/etc/ppp/pap-secrets" "/etc/ppp/pap-secrets"
    add_file "/usr/share/archboot/ppp/etc/ppp/ip-down.d/00-dns.sh" "/etc/ppp/ip-down.d/00-dns.sh"
    add_file "/usr/share/archboot/ppp/etc/ppp/ip-up.d/00-dns.sh" "/etc/ppp/ip-up.d/00-dns.sh"
    add_file "/etc/rc.d/ppp"
    # fix license files
    add_file "/usr/share/licenses/libpcap/LICENSE"
}

help ()
{
cat<<HELPEOF
  This hook includes ppp on an arch boot image.
HELPEOF
} 
