Package: ppp Version: 2.4.4rel-10.1 Severity: normal hi
I have a need to have multiple ppp sessions /etc/resolv get backuped to the same location I have attached patch to backup to different files - based on iterface name -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing'), (100, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.31-1-686 (SMP w/2 CPU cores) Locale: LANG=en_AU.UTF8, LC_CTYPE=en_AU.UTF8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages ppp depends on: ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib ii libpam-modules 1.1.1-3 Pluggable Authentication Modules f ii libpam-runtime 1.1.1-3 Runtime support for the PAM librar ii libpam0g 1.1.1-3 Pluggable Authentication Modules l ii libpcap0.8 1.1.1-2 system interface for user-level pa ii netbase 4.41 Basic TCP/IP networking system ii procps 1:3.2.8-8 /proc file system utilities ppp recommends no packages. Versions of packages ppp suggests: ii iptables 1.4.6-2 administration tools for packet fi -- Configuration Files: /etc/ppp/ip-down.d/0000usepeerdns changed [not included] /etc/ppp/ip-up.d/0000usepeerdns changed [not included] -- no debconf information
diff -Bru ppp-2.4.4rel/debian/changelog ppp-2.4.4rel-alex0.1/debian/changelog --- ppp-2.4.4rel/debian/changelog 2010-05-08 10:33:38.000000000 +1000 +++ ppp-2.4.4rel-alex0.1/debian/changelog 2010-05-08 11:54:27.000000000 +1000 @@ -1,3 +1,10 @@ +ppp (2.4.4rel-10.2) unstable; urgency=low + + * Non-maintainer upload. + * backup resolv.conf to interface specific file, allowing for multiple ppp interfaces + + -- alex samad <[email protected].> Sat, 08 May 2010 11:53:54 +1000 + ppp (2.4.4rel-10.1) unstable; urgency=low * Non-maintainer upload. diff -Bru ppp-2.4.4rel/extra/0000usepeerdns-down ppp-2.4.4rel-alex0.1/extra/0000usepeerdns-down --- ppp-2.4.4rel/extra/0000usepeerdns-down 2010-05-08 10:33:38.000000000 +1000 +++ ppp-2.4.4rel-alex0.1/extra/0000usepeerdns-down 2010-05-08 11:53:04.000000000 +1000 @@ -11,8 +11,8 @@ fi # if an old resolv.conf file exists, restore it -if [ -e $REALRESOLVCONF.pppd-backup ]; then - mv -f $REALRESOLVCONF.pppd-backup $REALRESOLVCONF +if [ -e $REALRESOLVCONF.pppd-backup.$PPP_IFACE ]; then + mv -f $REALRESOLVCONF.pppd-backup.$PPP_IFACE $REALRESOLVCONF # restart nscd because resolv.conf has changed if [ -e /var/run/nscd.pid ]; then diff -Bru ppp-2.4.4rel/extra/0000usepeerdns-up ppp-2.4.4rel-alex0.1/extra/0000usepeerdns-up --- ppp-2.4.4rel/extra/0000usepeerdns-up 2010-05-08 10:33:38.000000000 +1000 +++ ppp-2.4.4rel-alex0.1/extra/0000usepeerdns-up 2010-05-08 11:53:14.000000000 +1000 @@ -21,7 +21,7 @@ } > "$REALRESOLVCONF.tmp" # backup the old configuration and install the new one -cp -a "$REALRESOLVCONF" "$REALRESOLVCONF.pppd-backup" +cp -a "$REALRESOLVCONF" "$REALRESOLVCONF.pppd-backup.$PPP_IFACE" mv -f "$REALRESOLVCONF.tmp" "$REALRESOLVCONF" # restart nscd because resolv.conf has changed

