Hi, @uwet ,
Thank you for the additional details and for confirming that the script works when executed manually as root . Since the uci set commands do not seem to apply when the script is triggered by I/O Juggler , it may be related to the execution context or permissions in newer firmware versions.
To help narrow this down, could you please try the following checks?
- Verify which user executes the script from I/O Juggler
Please add the following lines temporarily to the script:
id > /tmp/juggler_user.txt
whoami >> /tmp/juggler_user.txt
After triggering the rule, check the result via CLI:
cat /tmp/juggler_user.txt
This will confirm whether the script is running as root or a restricted system user.
- Check if UCI writes are blocked in this context
Please add a simple test inside the script:
uci set gps.testvalue=test
uci commit gps
Then verify the result:
uci show gps
If the value does not appear, it would indicate that the script cannot modify this configuration when executed through I/O Juggler.
- Monitor system logs while triggering the rule
Run the following command in the CLI:
logread -f
Then trigger the I/O Juggler rule and check if any related errors appear in the logs.
- Use full command paths
Since the I/O Juggler environment may use a limited PATH, please try replacing the commands with full paths:
/usr/sbin/uci set gps.aktuelleposition.longitude=$longitude
/usr/sbin/uci set gps.aktuelleposition.latitude=$latitude
/usr/sbin/uci commit gps
/etc/init.d/gpsd reload
- Test modifying a different configuration
To determine whether the behavior is specific to the GPS configuration, please try a temporary change such as:
uci set system.@system[0].hostname=test123
uci commit system
If this works while the GPS configuration does not, it may indicate that the restriction applies specifically to that configuration.
- Capture script debug output
You can also run the script with debug output enabled:
sh -x /path/to/script.sh > /tmp/juggler_debug.log 2>&1
Then review the output:
cat /tmp/juggler_debug.log
Once you have the results from these checks, please share them with us and we will continue investigating the issue further.
Best regards,
V.