hmc
Active Member
Hi guys,
I don't get it.
I have a PND and want to start a script inside it.
Launching the script works, if the PND is stored on the FAT partition of my SD card.
Launching the script fails, if the PND is stored on the root FS (ext3).
What's the reason? How can I make the script work, even if the PND is stored in the root fs?
Details:
It's the keyboard layout switcher PND by slaeshjag:
http://repo.openpandora.org/?page=detail&app=change-keymap-0.1-slaeshjag
I want to control keyboard layout switching from outside, more precizely, from a configbutton plugin I am developing.
For that, I need to execute the script inside the PND's "./keymaps" directory directly, i.e. bypass the standard run script of the PND.
Hence I call from the configbutton Plugin (or from console, doesn't make a difference for this issue):
If the PND is stored on the SD card, i.e. [PATH_TO_PND] = /media/BOOT/pandora/menu, the call succeeds.
If the PND is stored in the root fs (which is also on SD card here), i.e. [PATH_TO_PND] = /pandora/menu, the call fails with (from /temp/pndrun_kblayout.out):
/usr/pandora/scripts/pnd_run.sh: line 544: ./keymaps/German-external-qwertz: Permission denied
Even if I start the pnd_run.sh script using sudo, I get the Permission denied error.
Is this a design flaw in the PND system?
Or is there anything I need to consider when storing PNDs on the root fs?
The reason for storing the PND in the root fs is, that I want the configbutton Plugin to have a central place, existent on all Pandoras, to look for the PND.
An alternative might be to extract the relevant files from the PND and supply it with the sonfigbutton Plugin. However, of course this would only work with slaeshjag's permission, and it's a less elegant solution. Also, I'd like to understand what's going on here.
Thank you!
Daniel
I don't get it.
I have a PND and want to start a script inside it.
Launching the script works, if the PND is stored on the FAT partition of my SD card.
Launching the script fails, if the PND is stored on the root FS (ext3).
What's the reason? How can I make the script work, even if the PND is stored in the root fs?
Details:
It's the keyboard layout switcher PND by slaeshjag:
http://repo.openpandora.org/?page=detail&app=change-keymap-0.1-slaeshjag
I want to control keyboard layout switching from outside, more precizely, from a configbutton plugin I am developing.
For that, I need to execute the script inside the PND's "./keymaps" directory directly, i.e. bypass the standard run script of the PND.
Hence I call from the configbutton Plugin (or from console, doesn't make a difference for this issue):
Code:
/usr/pandora/scripts/pnd_run.sh -p [PATH_TO_PND]/kblayout.pnd -e "./keymaps/German-external-qwertz" -b "kblayout"
If the PND is stored on the SD card, i.e. [PATH_TO_PND] = /media/BOOT/pandora/menu, the call succeeds.
If the PND is stored in the root fs (which is also on SD card here), i.e. [PATH_TO_PND] = /pandora/menu, the call fails with (from /temp/pndrun_kblayout.out):
/usr/pandora/scripts/pnd_run.sh: line 544: ./keymaps/German-external-qwertz: Permission denied
Even if I start the pnd_run.sh script using sudo, I get the Permission denied error.
Is this a design flaw in the PND system?
Or is there anything I need to consider when storing PNDs on the root fs?
The reason for storing the PND in the root fs is, that I want the configbutton Plugin to have a central place, existent on all Pandoras, to look for the PND.
An alternative might be to extract the relevant files from the PND and supply it with the sonfigbutton Plugin. However, of course this would only work with slaeshjag's permission, and it's a less elegant solution. Also, I'd like to understand what's going on here.
Thank you!
Daniel