[util-iso-calamares] fix thus.conf

This commit is contained in:
Philip 2015-03-21 23:27:38 +01:00 committed by Ramon Buldó
parent 901941d2d5
commit 6122fd8e1c

View file

@ -135,10 +135,16 @@ configure_thus(){
if [[ -f $1/usr/bin/thus ]];then if [[ -f $1/usr/bin/thus ]];then
msg2 "Configuring Thus ..." msg2 "Configuring Thus ..."
local conf="$1/etc/thus.conf" local conf="$1/etc/thus.conf"
sed -i "s|_version_|$dist_release|g" $conf echo "[distribution]" > "$conf"
sed -i "s|_kernel_|$kernel|g" $conf echo "DISTRIBUTION_NAME = \"${dist_name} Linux\"" >> "$conf"
sed -i "s|_root-image_|/bootmnt/${iso_name}/${arch}/root-image.sqfs|g" $conf echo "DISTRIBUTION_VERSION = \"${dist_release}\"" >> "$conf"
sed -i "s|_desktop-image_|/bootmnt/${iso_name}/${arch}/${custom}-image.sqfs|g" $conf echo "SHORT_NAME = \"${dist_name}\"" >> "$conf"
echo "[install]" >> "$conf"
echo "LIVE_MEDIA_SOURCE = \"/bootmnt/${iso_name}/${arch}/root-image.sqfs\"" >> "$conf"
echo "LIVE_MEDIA_DESKTOP = \"/bootmnt/${iso_name}/${arch}/${custom}-image.sqfs\"" >> "$conf"
echo "LIVE_MEDIA_TYPE = \"squashfs\"" >> "$conf"
echo "LIVE_USER_NAME = \"${username}\"" >> "$conf"
echo "KERNEL = \"${kernel}\"" >> "$conf"
mkdir -p $1/home/${username}/Desktop mkdir -p $1/home/${username}/Desktop
cp $1/usr/share/applications/thus.desktop $1/home/${username}/Desktop/thus.desktop cp $1/usr/share/applications/thus.desktop $1/home/${username}/Desktop/thus.desktop
chmod a+x $1/home/${username}/Desktop/thus.desktop chmod a+x $1/home/${username}/Desktop/thus.desktop