1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-05 23:44:11 +03:00

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
This commit is contained in:
hcg 2007-06-05 04:34:38 +00:00
parent 973d62f2ab
commit 800ef4cbea

View File

@ -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);