From 1a03c75de1b20d96acdd028b6288e3450daffd23 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Mon, 4 Jun 2012 21:55:49 +0000 Subject: uboot-envtools: update to 2012.04.01 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32051 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../patches/004-allow_mac_change.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 package/uboot-envtools/patches/004-allow_mac_change.patch (limited to 'package/uboot-envtools/patches/004-allow_mac_change.patch') diff --git a/package/uboot-envtools/patches/004-allow_mac_change.patch b/package/uboot-envtools/patches/004-allow_mac_change.patch new file mode 100644 index 0000000000..b7d600b690 --- /dev/null +++ b/package/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 +- + #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; -- cgit v1.2.3