mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-14 06:38:28 +00:00
Imported using git-ubuntu import. Changelog parent: 3371bafe21afe9ba81dbd5d0fd9672440c5a0b89 New changelog entries: * Add hostname and machine-info to the writable paths, so that hostnamectl can change them to create a sane default bluetooth device name.
16 lines
341 B
Bash
Executable File
16 lines
341 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; 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
|