I have the following code in rc.local but only the code to disable the blue light executes why is this?
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
echo 1 > /sys/devices/platform/leds/leds/bpi-r64:pio:blue/brightness
wait 10
echo 0 > /sys/devices/platform/leds/leds/bpi-r64:pio:green/brightness
exit 0
Thanks! However, the same thing happens if I remove the "wait 10" line and just have the lines that disable the light. I try replacing wait with sleep and see if it works though. This does not work either.
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
echo "1" > "/sys/devices/platform/leds/leds/bpi-r64:pio:blue/brightness"
sleep 10
echo "0" > "/sys/devices/platform/leds/leds/bpi-r64:pio:green/brightness"
exit 0
If "this doesn't work" means there's no change in LED behaviour, it means either or both of those things:
Commands are wrong (should there be leds/leds/ in there?).
Something is modifying the values above after the rc.local had ran.
Yes, I moved the code to its own script but still the same problem. @mk24 I read the location I referenced in the code is correct according to the Banana Pi R64 documentation.
Please be more specific here -- same problem with rc.local or in general?
Better phrased: does the standalone script execute properly when manually called?
How are you creating this file? Are you doing this on the computer and transferring it to your router, or did you create it directly on your router (using vi or nano)?