mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-17 04:17:19 +00:00
Changed target for ubpar.c to directly write to mtd device
SVN-Revision: 7502
This commit is contained in:
parent
6c6a51c4d5
commit
c079b2e046
@ -115,7 +115,7 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
envptr->crc = crc32(0, envptr->data, ENV_SIZE);
|
envptr->crc = crc32(0, envptr->data, ENV_SIZE);
|
||||||
|
|
||||||
params = fopen("params", "w");
|
params = fopen("/dev/mtd1", "w");
|
||||||
fwrite(envptr, CFG_ENV_SIZE, 1, params);
|
fwrite(envptr, CFG_ENV_SIZE, 1, params);
|
||||||
fclose(params);
|
fclose(params);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user