Use local configuration (static-get).
This commit is contained in:
		
							parent
							
								
									7be3ba8c78
								
							
						
					
					
						commit
						61f80b4f9b
					
				| @ -41,13 +41,6 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0 | ||||
| #                                                                   # | ||||
| ##################################################################### | ||||
| 
 | ||||
| # You can find the latest static-get shell script here: | ||||
| # | ||||
| #   http://s.minos.io/s | ||||
| #   http://github.com/minos-org/minos-static | ||||
| # | ||||
| STATIC_GET_SOURCE_URL=http://s.minos.io/s | ||||
| 
 | ||||
| # You can find the latest stress archives here: | ||||
| # | ||||
| #   https://people.seas.harvard.edu/~apw/stress/ | ||||
|  | ||||
							
								
								
									
										6
									
								
								src/minimal_overlay/bundles/static_get/.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/minimal_overlay/bundles/static_get/.config
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| # You can find the latest static-get shell script here: | ||||
| # | ||||
| #   http://s.minos.io/s | ||||
| #   http://github.com/minos-org/minos-static | ||||
| # | ||||
| STATIC_GET_URL=http://s.minos.io/s | ||||
| @ -4,11 +4,9 @@ set -e | ||||
| 
 | ||||
| . ../../common.sh | ||||
| 
 | ||||
| # Grab everything after the '=' character. | ||||
| DOWNLOAD_URL=$(grep -i STATIC_GET_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=') | ||||
| 
 | ||||
| # Read the 'USE_LOCAL_SOURCE' property from '.config' | ||||
| USE_LOCAL_SOURCE="$(grep -i USE_LOCAL_SOURCE $MAIN_SRC_DIR/.config | cut -f2 -d'=')" | ||||
| # Read the common configuration properties. | ||||
| DOWNLOAD_URL=`read_property STATIC_GET_URL` | ||||
| USE_LOCAL_SOURCE=`read_property USE_LOCAL_SOURCE` | ||||
| 
 | ||||
| if [ "$USE_LOCAL_SOURCE" = "true" -a ! -f $MAIN_SRC_DIR/source/overlay/static-get.sh  ] ; then | ||||
|   echo "Shell script $MAIN_SRC_DIR/source/overlay/static-get.sh is missing and will be downloaded." | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user