1 |
/* |
/* |
2 |
* Copyright (C) 2002 Jean-Charles Salzeber <jc@varspool.net> |
* Copyright (C) 2002 Jean-Charles Salzeber <jc@varspool.net> |
3 |
* |
* |
4 |
* This file is part of pengfork. |
* This file is part of penggy. |
5 |
* |
* |
6 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
7 |
* modify it under the terms of the GNU General Public License |
* modify it under the terms of the GNU General Public License |
63 |
f = fopen ("/etc/resolv.conf", "w"); |
f = fopen ("/etc/resolv.conf", "w"); |
64 |
if (f != NULL) |
if (f != NULL) |
65 |
{ |
{ |
66 |
fprintf (f, "# This file has been automaticly generated by pengfork\n"); |
fprintf (f, "# This file has been automaticly generated by penggy\n"); |
67 |
fprintf (f, "# A backup of your old configuration has been made in" |
fprintf (f, "# A backup of your old configuration has been made in" |
68 |
" /etc/resolv.peng\n"); |
" /etc/resolv.peng\n"); |
69 |
fprintf (f, "# It will be restored when connection is down\n\n"); |
fprintf (f, "# It will be restored when connection is down\n\n"); |