merge with scripts from ppp ebuild; create resolv.conf with world readable
authorAlin Năstac <mrness@gentoo.org>
Thu, 11 Nov 2004 06:20:53 +0000 (06:20 +0000)
committerAlin Năstac <mrness@gentoo.org>
Thu, 11 Nov 2004 06:20:53 +0000 (06:20 +0000)
net-dialup/isdn4k-utils/ChangeLog
net-dialup/isdn4k-utils/Manifest
net-dialup/isdn4k-utils/files/3.5_p20041024/ip-down
net-dialup/isdn4k-utils/files/3.5_p20041024/ip-up

index b6ff9436a98cf2195d52843f27e65004101af4b3..d98ead973de376a4f7936ea57a5787403fa9f0b8 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for net-dialup/isdn4k-utils
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/ChangeLog,v 1.27 2004/11/10 21:30:05 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/ChangeLog,v 1.28 2004/11/11 06:20:53 mrness Exp $
+
+  11 Nov 2004; Alin Nastac <mrness@gentoo.org> 
+  files/3.5_p20041024/ip-down, files/3.5_p20041024/ip-up:
+  Merge with ppp scripts: ip-up create resolv.conf with world readable.
 
 *isdn4k-utils-3.5_p20041024-r1 (10 Nov 2004)
 
index 09d20a62da1536ae1d791c520103ab74f3e1351e..0267b4fc9e832f2773ebd7749ac9a95b56916175 100644 (file)
@@ -1,7 +1,7 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 389e9243e16385da17a1facef9ee65a5 ChangeLog 5770
+MD5 a168b5cac63db5c3798bfb8903ddcd92 ChangeLog 5949
 MD5 9f4187355b91c0dabfca1b251589f527 isdn4k-utils-3.2_p1-r2.ebuild 2808
 MD5 5bfcbc27dc20e18327b61f5df2bbec60 isdn4k-utils-3.2_p1-r3.ebuild 3070
 MD5 f18a68edbe338cae044acc49ae9fdd2b isdn4k-utils-3.2_p1-r4.ebuild 3553
@@ -30,8 +30,8 @@ MD5 15ef676fec91271f9a48dc7a1b7e82a2 files/3.2_p1-r4/vbox-makefile.am.patch 1211
 MD5 36eadf8ec47ec3bf118cffbf2a42adb5 files/3.5_p20041024/config 2407
 MD5 76e9b700a1600d4b74dea30751934c83 files/3.5_p20041024/gentoo.patch 2383
 MD5 92412760dfacc81cfac908d522ac8e39 files/3.5_p20041024/ioptions 86
-MD5 9ba5a5507c109df722fcad7ab21279ac files/3.5_p20041024/ip-down 952
-MD5 7db378ace284707286fc611e41579f2d files/3.5_p20041024/ip-up 1095
+MD5 b75b68506a43d3d897d7b32eb280b42e files/3.5_p20041024/ip-down 956
+MD5 38984b8cf470784c9052f566b4faa5d8 files/3.5_p20041024/ip-up 1105
 MD5 4cd4db641466668b0e04c6c3c9ff4ce7 files/3.5_p20041024/isdn4linux.conf 189
 MD5 79e7d5d0bfba905952294d6500361296 files/3.5_p20041024/isdn4linux.init 962
 MD5 786c52d03809635b0a5617d7608c54a5 files/3.5_p20041024/net.ippp0 2428
@@ -41,7 +41,7 @@ MD5 15ef676fec91271f9a48dc7a1b7e82a2 files/3.5_p20041024/vbox-makefile.am.patch
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (GNU/Linux)
 
-iD8DBQFBkohmjtv59x0+BrURApyAAKDhBY4OzysvB4DIgfkbnBk5MuX1CACfWS6u
-MYaVEUytOfpvLG3kSWMAMlM=
-=zvqy
+iD8DBQFBkwTQjtv59x0+BrURAozOAJwJU8myQH6ZL53zek0iH8MJZlTdcACgvsg3
+3FSP1PwHWH4jjsI34zdSMVU=
+=XeSX
 -----END PGP SIGNATURE-----
index ab5264cd361e95aa9febeda4a4b2f6b97482a612..52ae93395c149fc01cc1acdbd80d248c4a136060 100644 (file)
@@ -19,10 +19,10 @@ if [ "$USEPEERDNS" ]; then
 
        if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then
 
-       # if an old resolv.conf file exists, restore it
-       if [ -e $REALRESOLVCONF.pppd-backup ]; then
-               mv $REALRESOLVCONF.pppd-backup $REALRESOLVCONF
-       fi
+               # if an old resolv.conf file exists, restore it
+               if [ -e $REALRESOLVCONF.pppd-backup ]; then
+                       mv $REALRESOLVCONF.pppd-backup $REALRESOLVCONF
+               fi
 
        fi
 
index 760a4e57846d5aacafc5bcbf49d47f6ad78d423c..4f16ae3220f632be05c84f14183b8de744d65e61 100644 (file)
@@ -21,19 +21,19 @@ if [ "$USEPEERDNS" ]; then
 
        if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then
 
-       # merge the new nameservers with the other options from the old configuration
-       {
-               grep --invert-match '^nameserver[[:space:]]' $REALRESOLVCONF
-               cat /etc/ppp/resolv.conf
-       } > $REALRESOLVCONF.tmp
-
-       # backup the old configuration and install the new one
-       cp -a $REALRESOLVCONF $REALRESOLVCONF.pppd-backup
-       mv $REALRESOLVCONF.tmp $REALRESOLVCONF
-
-       # correct permissions
-       chmod 640 /etc/resolv.conf
-       chown root:users /etc/resolv.conf
+               # merge the new nameservers with the other options from the old configuration
+               {
+                       grep --invert-match '^nameserver[[:space:]]' $REALRESOLVCONF
+                       cat /etc/ppp/resolv.conf
+               } > $REALRESOLVCONF.tmp
+
+               # backup the old configuration and install the new one
+               cp -a $REALRESOLVCONF $REALRESOLVCONF.pppd-backup
+               mv $REALRESOLVCONF.tmp $REALRESOLVCONF
+
+               # correct permissions
+               chmod 644 /etc/resolv.conf
+               chown root:root /etc/resolv.conf
 
        fi