uci: add uci_revert function
Add missing uci_revert shell function wrapper. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
		
				
					committed by
					
						
						Paul Spooren
					
				
			
			
				
	
			
			
			
						parent
						
							f0f1d68d52
						
					
				
				
					commit
					92ac2a20eb
				
			@@ -9,7 +9,7 @@
 | 
				
			|||||||
include $(TOPDIR)/rules.mk
 | 
					include $(TOPDIR)/rules.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_NAME:=uci
 | 
					PKG_NAME:=uci
 | 
				
			||||||
PKG_RELEASE:=5
 | 
					PKG_RELEASE:=6
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uci.git
 | 
					PKG_SOURCE_URL=$(PROJECT_GIT)/project/uci.git
 | 
				
			||||||
PKG_SOURCE_PROTO:=git
 | 
					PKG_SOURCE_PROTO:=git
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -149,6 +149,14 @@ uci_remove_list() {
 | 
				
			|||||||
	/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} del_list "$PACKAGE.$CONFIG.$OPTION=$VALUE"
 | 
						/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} del_list "$PACKAGE.$CONFIG.$OPTION=$VALUE"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uci_revert() {
 | 
				
			||||||
 | 
						local PACKAGE="$1"
 | 
				
			||||||
 | 
						local CONFIG="$2"
 | 
				
			||||||
 | 
						local OPTION="$3"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} revert "$PACKAGE${CONFIG:+.$CONFIG}${OPTION:+.$OPTION}"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uci_commit() {
 | 
					uci_commit() {
 | 
				
			||||||
	local PACKAGE="$1"
 | 
						local PACKAGE="$1"
 | 
				
			||||||
	/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} commit $PACKAGE
 | 
						/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} commit $PACKAGE
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user