Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] PERFORCE change 79714 by Pol Vinogradov for review

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Perforce Review Daemon <p4review AT smee.org>
  • To: "Andrew Stitt" <a AT t.armory.com>, "Arjan Bouter" <abouter AT sourcemage.org>, "SM-Commit Daemon" <sm-commit AT lists.ibiblio.org>, "duane_malcolm" <d.malcolm AT auckland.ac.nz>, "Ethan Grammatikidis" <eekee AT eekee.is-a-geek.org>, "Gareth Clay" <gareth AT caffeinefuelled.co.uk>, "Maurizio Boriani" <baux AT member.fsf.org>, "Pieter Lenaerts" <e-type AT sourcemage.org>, "Robin Cook" <rcook AT wyrms.net>, "Seth Woolley" <seth AT swoolley.homeip.net>, "Unet" <unet AT sourcemage.org>, "vladimir_marek" <vlmarek AT volny.cz>
  • Subject: [SM-Commit] PERFORCE change 79714 by Pol Vinogradov for review
  • Date: Tue, 23 May 2006 18:40:00 +0100 (BST)

Change 79714 by pol_vinogradov@public on 2006/05/23 18:39:33

fixed resolv.conf handling (i hope so ;) )

Affected files ...

... //sgl/grimoires/devel/net/ppp/FINAL#9 edit
... //sgl/grimoires/devel/net/ppp/HISTORY#20 edit

Differences ...

==== //sgl/grimoires/devel/net/ppp/FINAL#9 (xtext) ====

@@ -1,19 +1,17 @@
-# Does /etc/resolv.conf already exist?
-if [ -s ${INSTALL_ROOT}/etc/resolv.conf ]
+# resolv.conv handling
+if [ "$USE_PEER_DNS" == "y" ]
then
- FILE_EXISTS=1
-else
- FILE_EXISTS=0
-fi
-
-if [ "$USE_PEER_DNS" == "y" ]; then
- if [ $FILE_EXISTS ]
+ if [[ -s ${INSTALL_ROOT}/etc/resolv.conf && ! -h
${INSTALL_ROOT}/etc/resolv.conf ]]
then
- cat ${INSTALL_ROOT}/etc/resolv.conf >> /etc/ppp/resolv.conf &&
- mv ${INSTALL_ROOT}/etc/resolv.conf \
- ${INSTALL_ROOT}/etc/resolv.conf.`date +%Y%m%d%k%M%S | sed 's: ::g'`
+ cat ${INSTALL_ROOT}/etc/resolv.conf >> ${INSTALL_ROOT}/etc/ppp/resolv.conf
&&
+ mv ${INSTALL_ROOT}/etc/resolv.conf
\
+ ${INSTALL_ROOT}/etc/resolv.conf.`date +%Y%m%d%k%M%S | sed 's: ::g'`
fi &&
- ln -s /etc/ppp/resolv.conf /etc/resolv.conf
+ rm -f ${INSTALL_ROOT}/etc/resolv.conf
&&
+ ln -s ${INSTALL_ROOT}/etc/ppp/resolv.conf
${INSTALL_ROOT}/etc/resolv.conf &&
+ message "${MESSAGE_COLOR}NOTICE: Your current
${INSTALL_ROOT}/etc/resolv.conf has been\n" \
+ "backed up, it's contents have been copied to
/etc/ppp/resolv.conf,\n" \
+ "and has been replaced by a symbolic link.\n\n"
fi &&

message "${MESSAGE_COLOR}Please edit /etc/ppp/chat/isp and insert your\n"
\
@@ -29,11 +27,4 @@
"Read the man pages on ppp and chat for more information.\n"
\
"In some cases, perhaps an internal modem on a non-standard
port,\n" \
"ln -s ttyS04 /dev/modem might work.\n"
\
- "\n"
&&
-
-if [ $FILE_EXISTS ]
-then
-message "NOTICE: Your current ${INSTALL_ROOT}/etc/resolv.conf has been\n"
\
- "backed up, it's contents have been copied to
/etc/ppp/resolv.conf,\n"\
- "and has been replaced by a symbolic link.\n"
-fi
+ "\n"

==== //sgl/grimoires/devel/net/ppp/HISTORY#20 (text) ====

@@ -1,3 +1,6 @@
+2006-05-23 Pol Vinogradov <vin.public AT gmail.com>
+ * FINAL: fixed resolv.conf handling completely
+
2006-05-13 Matthew Clark <matthewclark AT inlesserterms.net>
* FINAL: Trying to enhance message, bug 10409




  • [SM-Commit] PERFORCE change 79714 by Pol Vinogradov for review, Perforce Review Daemon, 05/23/2006

Archive powered by MHonArc 2.6.24.

Top of Page