mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	uboot-envtools: add wrapper scripts for alternate config
Now that we can create an alternate configuration file, add two wrapper scripts for simple access to it using the alternate alternate application names `fw_printsys' and `fw_setsys'. Signed-off-by: Bjørn Mork <bjorn@mork.no>
This commit is contained in:
		
							parent
							
								
									a3e9fd7e5b
								
							
						
					
					
						commit
						b7154fabf0
					
				@ -68,6 +68,8 @@ define Package/uboot-envtools/install
 | 
			
		||||
	$(INSTALL_DIR) $(1)/usr/sbin
 | 
			
		||||
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/env/fw_printenv $(1)/usr/sbin
 | 
			
		||||
	$(LN) fw_printenv $(1)/usr/sbin/fw_setenv
 | 
			
		||||
	$(INSTALL_BIN) ./files/fw_printsys $(1)/usr/sbin
 | 
			
		||||
	$(INSTALL_BIN) ./files/fw_setsys $(1)/usr/sbin
 | 
			
		||||
	$(INSTALL_DIR) $(1)/lib
 | 
			
		||||
	$(INSTALL_DATA) ./files/uboot-envtools.sh $(1)/lib
 | 
			
		||||
	$(INSTALL_DIR) $(1)/etc/uci-defaults
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								package/boot/uboot-envtools/files/fw_printsys
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								package/boot/uboot-envtools/files/fw_printsys
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
[ -e /etc/fw_sys.config ] && exec /usr/sbin/fw_printenv -c /etc/fw_sys.config "$@"
 | 
			
		||||
							
								
								
									
										2
									
								
								package/boot/uboot-envtools/files/fw_setsys
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								package/boot/uboot-envtools/files/fw_setsys
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,2 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
[ -e /etc/fw_sys.config ] && exec /usr/sbin/fw_setenv -c /etc/fw_sys.config "$@"
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user