[boot] move boot related packages to their own folder
[openwrt/svn-archive/archive.git] / package / boot / uboot-envtools / patches / 004-allow_mac_change.patch
1 --- a/fw_env.c
2 +++ b/fw_env.c
3 @@ -46,8 +46,6 @@
4
5 #include "fw_env.h"
6
7 -#include <config.h>
8 -
9 #define WHITESPACE(c) ((c == '\t') || (c == ' '))
10
11 #define min(x, y) ({ \
12 @@ -401,9 +399,7 @@ int fw_env_write(char *name, char *value
13 if (
14 (strcmp(name, "serial#") == 0) ||
15 ((strcmp(name, "ethaddr") == 0)
16 -#if defined(CONFIG_OVERWRITE_ETHADDR_ONCE) && defined(CONFIG_ETHADDR)
17 && (strcmp(oldval, MK_STR(CONFIG_ETHADDR)) != 0)
18 -#endif /* CONFIG_OVERWRITE_ETHADDR_ONCE && CONFIG_ETHADDR */
19 ) ) {
20 fprintf (stderr, "Can't overwrite \"%s\"\n", name);
21 errno = EROFS;