Modify

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#8716 closed defect (fixed)

uci-defaults scripts for ar71xx accumulate entries for leds in /etc/config/system on each sysupgrade

Reported by: anonymous Owned by: developers
Priority: low Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

uci-defaults for ar71xx boards contains boards-specific scripts that append led configuration to /etc/config/system but doe not check if led configuration is already in place.

After multiple sysupgrade /etc/config/system will contain multiple config duplicates for the same leds

Maybe something like this could be applicable as workaround

#!/bin/sh
#
# Copyright (C) 2010 OpenWrt.org
#

[ -n uci -q get system.@led[-1] ] && exit 0

...

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by anonymous

The above test statement is not correct.

I should have typed:

#!/bin/sh
#
# Copyright (C) 2010 OpenWrt.org
#

[ -n "$(uci -q get system.@led[-1])" ] && exit 0

comment:2 Changed 6 years ago by juhosg

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r28704.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.