mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-10-28 15:34:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| set -ex
 | |
| 
 | |
| echo "I: Creating warning to use snappy when apt-get is used"
 | |
| 
 | |
| PREFIX=binary/boot/filesystem.dir
 | |
| 
 | |
| mkdir -p $PREFIX/usr/local/bin
 | |
| cat >$PREFIX/usr/local/bin/no-apt <<EOF
 | |
| #!/bin/sh
 | |
| cat <<EOF
 | |
| Ubuntu Core does not use apt-get, see 'snappy --help'!
 | |
| EOF
 | |
| chmod 755 $PREFIX/usr/local/bin/no-apt
 | |
| 
 | |
| for cmd in apt apt-cache apt-get; do
 | |
|     ln -s no-apt $PREFIX/usr/local/bin/$cmd
 | |
| done
 |