Quote:
Originally Posted by arco68
Shouldn't it be:
Code:
mount("yaffs2", "MTD", "data", "/data");
|
Quote:
Originally Posted by rallapag
to rule out any mistakes just used only above command
but gives me status 7 error
"mount() expects 3 args, got 4"
|
Hi Arco,
I spent little more time investigating on updater script and this is what i have found
I took your GB updater-script: As you run a script to back up system contents, it mounts system,
then if i try to use format command it needs 3 arguments and mount command needs 4 arguments (error will be like this: "mount() expects 4 args, got 3")
Code:
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
run_program("/tmp/backuptool.sh", "backup");
format("yaffs2", "MTD", "system");
mount("yaffs2", "MTD", "system", "/system");
but if the updater starts without any backup script
then it is expecting 3 args for mount and 2 args for format, as mentioned previously with data wipe problem in my previous post
|