mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 03:11:12 +00:00
Touch file if it doesnt exist
This commit is contained in:
parent
2cc7d04ffd
commit
a28790c6f9
@ -8,6 +8,9 @@ for f in timezone localtime machine-info hostname; do
|
||||
if [ -e /etc/$f ]; then
|
||||
echo "I: Moving /etc/$f to /etc/writable/"
|
||||
mv /etc/$f /etc/writable/$f
|
||||
else
|
||||
echo "I: Creating /etc/writable/$f"
|
||||
touch /etc/writable/$f
|
||||
fi
|
||||
echo "I: Linking /etc/$f to /etc/writable/"
|
||||
ln -s writable/$f /etc/$f
|
||||
|
Loading…
x
Reference in New Issue
Block a user