Greg Erskine wrote: > hi sakos, > > 99% of piCorePlayer is just shell scripts, so the code is on your SD > card. > > I'd probably start looking at pcp-lms-functions. > > There is the extra complication that pCP uses readonly extensions linked > to in RAM. > > regards > Greg
Ok, found the pcp_lms_mode() function, but could not see any mapping. pcp_lms_mode() { REQUEST=$(pcp_lms_build_request "$NAME" mode ?) RESULT=$(pcp_lms_build_result result _mode) pcp_lms_json_request pcp_lms_build_result() { #Should be at least 2 arguments, result is almost always the first. RLOOP="[" pcp_lms_build_loop $@ REQ="$RLOOP]" # escape the brackets [ ] for egrep and sed echo $REQ | sed 's/\[/\\\[/' | sed 's/\]/\\\]/' } pcp_lms_build_loop() { if [ "$1" != "" ]; then [ "$RLOOP" == '[' ] && RLOOP="$RLOOP"$1"" ||RLOOP="$RLOOP,"$1"" shift NEXT=$@ [ "$NEXT" != "" ] && pcp_lms_build_loop $NEXT fi } Do I understand well? ------------------------------------------------------------------------ sakos's Profile: http://forums.slimdevices.com/member.php?userid=70470 View this thread: http://forums.slimdevices.com/showthread.php?t=110277 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix