mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
Implement suggestion by jhb@ to have _PATH_FIRMWARE instead of hard
coding it to be "/usr/share/firmware".
This commit is contained in:
parent
9b511ce96b
commit
1ed9c427e5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297205
@ -56,6 +56,7 @@
|
||||
#define _PATH_DRUM "/dev/drum"
|
||||
#define _PATH_ESDB "/usr/share/i18n/esdb"
|
||||
#define _PATH_ETC "/etc"
|
||||
#define _PATH_FIRMWARE "/usr/share/firmware"
|
||||
#define _PATH_FTPUSERS "/etc/ftpusers"
|
||||
#define _PATH_FWMEM "/dev/fwmem"
|
||||
#define _PATH_GBDE "/sbin/gbde"
|
||||
|
@ -143,7 +143,7 @@ main(int argc, char *argv[])
|
||||
if (argc == 1)
|
||||
fwname = argv[0];
|
||||
else
|
||||
fwname = "/usr/share/firmware/ar5523.bin";
|
||||
fwname = _PATH_FIRMWARE "/ar5523.bin";
|
||||
fw = open(fwname, O_RDONLY, 0);
|
||||
if (fw < 0)
|
||||
err(-1, "open(%s)", fwname);
|
||||
|
Loading…
Reference in New Issue
Block a user