FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 06-07-2011, 10:18 AM
Vratislav Podzimek
 
Default remove key-files writing in loader (no more needed, NM does it itself)

---
loader/net.c | 50 --------------------------------------------------
1 files changed, 0 insertions(+), 50 deletions(-)

diff --git a/loader/net.c b/loader/net.c
index e011222..46476ea 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -1470,14 +1470,6 @@ int writeEnabledNetInfo(iface_t *iface) {
logMessage(INFO, "not setting default route via %s", iface->device);
}

- if (iface->ssid) {
- fprintf(fp, "ESSID=%s
", iface->ssid);
- }
-
- if (iface->wepkey) {
- fprintf(fp, "DEFAULTKEY=1");
- }
-
if (fclose(fp) == EOF) {
free(ofile);
free(nfile);
@@ -1498,48 +1490,6 @@ int writeEnabledNetInfo(iface_t *iface) {
free(nfile);
}

- /* wireless wepkey: keys-DEVICE file */
- if (iface->wepkey) {
- if (asprintf(&ofile, "%s/.keys-%s",
- NETWORK_SCRIPTS_PATH, iface->device) == -1) {
- return 21;
- }
-
- if (asprintf(&nfile, "%s/keys-%s",
- NETWORK_SCRIPTS_PATH, iface->device) == -1) {
- return 22;
- }
-
- if ((fp = fopen(ofile, "w")) == NULL) {
- free(ofile);
- return 23;
- }
-
- fprintf(fp, "KEY1=%s
", iface->wepkey);
-
-
- if (fclose(fp) == EOF) {
- free(ofile);
- free(nfile);
- return 24;
- }
-
- if (rename(ofile, nfile) == -1) {
- free(ofile);
- free(nfile);
- return 25;
- }
-
- if (ofile) {
- free(ofile);
- }
-
- if (nfile) {
- free(nfile);
- }
- }
-
-
return 0;
}

--
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org