aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2007-06-05 04:34:38 +0000
committerHamish Guthrie <hcg@openwrt.org>2007-06-05 04:34:38 +0000
commit1dc58c0ae27a85dbb52136a54dce35cf5cc6e9ed (patch)
tree566ffd1917b154abe37fe074cda5d7d57b0ddfcc /target
parent375a21a4755f64761f37bc7172c089235091c63e (diff)
downloadupstream-1dc58c0ae27a85dbb52136a54dce35cf5cc6e9ed.tar.gz
upstream-1dc58c0ae27a85dbb52136a54dce35cf5cc6e9ed.tar.bz2
upstream-1dc58c0ae27a85dbb52136a54dce35cf5cc6e9ed.zip
Changed target for ubpar.c to directly write to mtd device
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7502 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c b/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c
index 103d4fd217..228a578a61 100644
--- a/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c
+++ b/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c
@@ -115,7 +115,7 @@ int main(int argc, char *argv[]) {
envptr->crc = crc32(0, envptr->data, ENV_SIZE);
- params = fopen("params", "w");
+ params = fopen("/dev/mtd1", "w");
fwrite(envptr, CFG_ENV_SIZE, 1, params);
fclose(params);