Changeset 27614


Ignore:
Timestamp:
2011-07-15T16:52:38+02:00 (7 years ago)
Author:
jow
Message:

[package] uci: implement a uci_toogle_state() wrapper in the shell api which calls uci_revert_state() before uci_set_state()

Location:
trunk/package/uci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uci/Makefile

    r26470 r27614  
    11# 
    2 # Copyright (C) 2008 OpenWrt.org 
     2# Copyright (C) 2008-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1313PKG_NAME:=uci 
    1414PKG_VERSION:=$(UCI_VERSION)$(if $(UCI_RELEASE),.$(UCI_RELEASE)) 
    15 PKG_RELEASE:=1 
     15PKG_RELEASE:=2 
    1616PKG_REV:=5b6e96336d6a615a72c274cceaea8c2fe74d7642 
    1717 
  • trunk/package/uci/files/lib/config/uci.sh

    r22629 r27614  
    7272} 
    7373 
     74uci_toggle_state() { 
     75        uci_revert_state "$1" "$2" "$3" 
     76        uci_set_state "$1" "$2" "$3" "$4" 
     77} 
     78 
    7479uci_set() { 
    7580        local PACKAGE="$1" 
Note: See TracChangeset for help on using the changeset viewer.