Usage:
pnd_run.sh -p file.pnd -e cmd [-a args] [-b pndid] [-s path] [-c speed] [-d [path]] [-x] [-m] [-u] [-- more_args]
-p file.pnd : Specify the pnd file to execute
-e cmd : Command to run
-a args : Arguments to the command
-b pndid : name of the directory mount-point ($UNION_MOUNT_DIR/pndid) (Default: name of the pnd file)
-s path : Directory in the union to start the command from
-o speed : Set the CPU speed
-d [path] : Use path as source of the overlay. (Default: pandora/appdata/pndid)
-x : Stop X before starting the apps
-m : Only mount the pnd, dont run it (-e become optional)
-u : Only umount the pnd, dont run it (-e become optional)
I'm not sure why you cut off lines 150 and 151 which are an addendum to the usage which seems to be relevant here:https://github.com/skeezix/libpnd-clone/blob/master/testdata/scripts/pnd_run.sh
If you scroll through the script you will find the usage section which explains how to pass arguments and everything else:
If '--' is specified, all subsequent arguments are passed through to the command
(useful if you want to pass quotes and weird chars to the command)
Yeah I didn't mean to cut off those lines but I posted this from my cellphone and it was super hard to copy and paste on the touch screen.I'm not sure why you cut off lines 150 and 151 which are an addendum to the usage which seems to be relevant here:
That seems to be what the OP is asking about to me. I take your warning that this doesn't seem to be live code, but I doubt that facility was explicitly excluded from the latest code.
Edit: Of course, it's possible if not likely that actually the first run thing is a script which doesn't parse any arguments, so arguments that make it through pnd_run wouldn't actually go any further. If you examine and modify the run script you wouldn't need to repack it necessarily for testing at least; you could put it in your appdata for the pnd, and that will replace the copy inside the pnd before running. If you want various different options here though, you'll need to repack the pnd as part of any solution though I think.
Making a PND is not a simple matter of running squashfs as far as I recall, there's also a separate copy of the PXML appended to the end. There should me a helper script called makepnd around somewhere, possibly in usr/pandora/scripts, but you might have success just appending the PXML to the end.