Commit d49e73d0 authored by Colin Watson's avatar Colin Watson

Configuration file fallback

Fall back to /usr/lib/pcmciautils/config.opts if /etc/pcmcia/config.opts
doesn't exist.

This is Debian-specific, to deal with migration from the old pcmcia-cs
package.

Bug-Debian: http://bugs.debian.org/392222
Forwarded: not-needed
Last-Update: 2010-03-29

Patch-Name: config-opts-fallback.patch
parent bfe1bde2
......@@ -186,7 +186,8 @@ static void load_config(void)
syslog(LOG_ERR, "chdir to %s failed: %m", configpath);
exit(EXIT_FAILURE);
}
parse_configfile("config.opts");
if (parse_configfile("config.opts") == -1)
parse_configfile("/usr/lib/pcmciautils/config.opts");
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment