diff options
author | John Crispin <john@openwrt.org> | 2012-10-16 13:44:25 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-10-16 13:44:25 +0000 |
commit | e75106aa0d82a64122954b5990b50ec80d8e4040 (patch) | |
tree | bcc8ab60e849b3a0debb601b13c7f5356d9683e8 /package/boot/uboot-envtools/patches/004-allow_mac_change.patch | |
parent | 254d851d8a9434e9c8a12a6ec96538ba13101600 (diff) | |
download | mtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.zip mtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.tar.gz mtk-20170518-e75106aa0d82a64122954b5990b50ec80d8e4040.tar.bz2 |
move boot related packages to their own folder
SVN-Revision: 33781
Diffstat (limited to 'package/boot/uboot-envtools/patches/004-allow_mac_change.patch')
-rw-r--r-- | package/boot/uboot-envtools/patches/004-allow_mac_change.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/boot/uboot-envtools/patches/004-allow_mac_change.patch b/package/boot/uboot-envtools/patches/004-allow_mac_change.patch new file mode 100644 index 0000000..b7d600b --- /dev/null +++ b/package/boot/uboot-envtools/patches/004-allow_mac_change.patch @@ -0,0 +1,21 @@ +--- a/fw_env.c ++++ b/fw_env.c +@@ -46,8 +46,6 @@ + + #include "fw_env.h" + +-#include <config.h> +- + #define WHITESPACE(c) ((c == '\t') || (c == ' ')) + + #define min(x, y) ({ \ +@@ -401,9 +399,7 @@ int fw_env_write(char *name, char *value + if ( + (strcmp(name, "serial#") == 0) || + ((strcmp(name, "ethaddr") == 0) +-#if defined(CONFIG_OVERWRITE_ETHADDR_ONCE) && defined(CONFIG_ETHADDR) + && (strcmp(oldval, MK_STR(CONFIG_ETHADDR)) != 0) +-#endif /* CONFIG_OVERWRITE_ETHADDR_ONCE && CONFIG_ETHADDR */ + ) ) { + fprintf (stderr, "Can't overwrite \"%s\"\n", name); + errno = EROFS; |