Changeset 9508


Ignore:
Timestamp:
2007-11-07T14:24:10+01:00 (8 years ago)
Author:
nbd
Message:

add ppp ipv6 patch by farnz (from #2525)

Location:
trunk/package/ppp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/ppp/Makefile

    r8964 r9508  
    135135        $(INSTALL_BIN) ./files/etc/ppp/ip-down $(1)/etc/ppp/ 
    136136        $(INSTALL_DIR) $(1)/etc/ppp/ip-down.d 
     137        $(INSTALL_BIN) ./files/etc/ppp/ipv6-up $(1)/etc/ppp/ 
     138        $(INSTALL_BIN) ./files/etc/ppp/ipv6-down $(1)/etc/ppp/ 
    137139        $(INSTALL_DATA) ./files/etc/ppp/options $(1)/etc/ppp/ 
    138140        ln -sf /tmp/resolv.conf.auto $(1)/etc/ppp/resolv.conf 
  • trunk/package/ppp/files/etc/ppp/ipv6-down

    r8794 r9508  
    11#!/bin/sh 
    2 route -A inet6 del $4 dev $1 
     2 
     3gw=$4 
     4dev=$1 
     5cfg=$6 
     6 
     7. /etc/functions.sh      # common functions 
     8include /lib/network     # include /lib/network/*.sh 
     9scan_interfaces          # read and parse the network config 
     10 
     11config_get_bool defaultroute "$cfg" defaultroute 1 
     12 
     13if [ ${defaultroute} -eq 1 ] 
     14then 
     15        route -A inet6 del default gw ${gw} dev ${dev} 
     16fi 
  • trunk/package/ppp/files/etc/ppp/ipv6-up

    r8794 r9508  
    11#!/bin/sh 
    2 route -A inet6 add default $4 dev $1 
     2 
     3gw=$4 
     4dev=$1 
     5cfg=$6 
     6 
     7. /etc/functions.sh      # common functions 
     8include /lib/network     # include /lib/network/*.sh 
     9scan_interfaces          # read and parse the network config 
     10 
     11config_get_bool defaultroute "$cfg" defaultroute 1 
     12 
     13if [ ${defaultroute} -eq 1 ] 
     14then 
     15        route -A inet6 add default gw ${gw} dev ${dev} 
     16fi 
  • trunk/package/ppp/files/ppp.sh

    r8665 r9508  
    3838        config_get demand "$cfg" demand 
    3939        [ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp/resolv.conf.auto 
     40 
     41        config_get_bool ipv6 "$cfg" ipv6 0 
     42        [ "$ipv6" -eq 1 ] && ipv6="+ipv6" || ipv6="" 
     43 
    4044        /usr/sbin/pppd "$@" \ 
    4145                ${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \ 
     
    4953                ${connect:+connect "$connect"} \ 
    5054                ${disconnect:+disconnect "$disconnect"} \ 
     55                ${ipv6} \ 
    5156                ${pppd_options} 
    5257 
Note: See TracChangeset for help on using the changeset viewer.