Uci list as fifo

I want to store a fifo of history in a uci list.

I can add history to the end of the list using
uci add_list special.history=fish
This allows me to add possibly duplicate values to the list, which is what I want.

When I then delete the first item in the list (shark)
uci add_list special.history=shark
it will unfortunately delete all instances of shark from the list

I think there is not, but is there any way to delete just the first item in the list and leave any later duplicates? Can I do this through ubus calls instead of command line uci?

You may check UCI sources https://git.openwrt.org/?p=project/uci.git;a=tree

1 Like