112 |
|
<< "config.install = " << config.install << "\n"; |
113 |
|
} |
114 |
|
|
115 |
< |
// configure(); |
115 |
> |
configure(); |
116 |
|
|
117 |
|
if (debug) |
118 |
|
{ |
119 |
< |
cerr << "config.smbclient = " << config.smbclient << "\n"; |
120 |
< |
cerr << "config.mount_smbfs = " << config.mount_smbfs << "\n" |
119 |
> |
cerr << "config.smbclient = " << config.smbclient << "\n" |
120 |
> |
<< "config.mount = " << config.mount << "\n" |
121 |
> |
<< "config.root = " << config.root << "\n" |
122 |
|
<< (!config.hosts.empty() ? "config.hosts = {\n" : ""); |
123 |
|
|
124 |
|
for (multimap<string, string>::iterator itor = config.hosts.begin(); |
168 |
|
<< " This product includes software developed by Douglas Thrift\n" |
169 |
|
<< " (http://computers.douglasthrift.net/).\n"; |
170 |
|
} |
171 |
+ |
|
172 |
+ |
void configure() |
173 |
+ |
{ |
174 |
+ |
string conf = config.install + "/conf/spectre.conf"; |
175 |
+ |
|
176 |
+ |
ifstream fin(conf.c_str()); |
177 |
+ |
|
178 |
+ |
if (!fin.is_open()) |
179 |
+ |
{ |
180 |
+ |
cerr << program << ": Could not open " << conf << "\n"; |
181 |
+ |
exit(1); |
182 |
+ |
} |
183 |
+ |
|
184 |
+ |
do |
185 |
+ |
{ |
186 |
+ |
// |
187 |
+ |
} |
188 |
+ |
while (fin.good()); |
189 |
+ |
|
190 |
+ |
fin.close(); |
191 |
+ |
} |