mirror of
				https://git.launchpad.net/livecd-rootfs
				synced 2025-11-04 10:54:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			350 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			350 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
set -e
 | 
						|
set -x
 | 
						|
 | 
						|
mkdir -p /etc/writable
 | 
						|
touch /etc/writable/machine-info
 | 
						|
 | 
						|
for f in timezone localtime machine-info hostname whoopsie; do
 | 
						|
    if [ -e /etc/$f ]; then
 | 
						|
        echo "I: Moving /etc/$f to /etc/writable/"
 | 
						|
        mv /etc/$f /etc/writable/$f
 | 
						|
    fi
 | 
						|
    echo "I: Linking /etc/$f to /etc/writable/"
 | 
						|
    ln -s writable/$f /etc/$f
 | 
						|
done
 |