Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # configure_thus.sh
- set -e
- # variables
- kernel=linux318
- dist_name=Manjaro
- dist_release=0.8.13
- iso_name=manjaro
- if [ "$(uname -m)" = x86_64 ]; then
- arch=x86_64
- else
- arch=i686
- fi
- custom=xfce
- username=manjaro
- # configure_thus
- source "/etc/mkinitcpio.d/${kernel}.preset"
- conf="/etc/thus.conf"
- echo "[distribution]" > "$conf"
- echo "DISTRIBUTION_NAME = \"${dist_name} Linux\"" >> "$conf"
- echo "DISTRIBUTION_VERSION = \"${dist_release}\"" >> "$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"
- echo "VMLINUZ = \"$(echo ${ALL_kver} | sed s'|/boot/||')\"" >> "$conf"
- echo "INITRAMFS = \"$(echo ${default_image} | sed s'|/boot/||')\"" >> "$conf"
- echo "FALLBACK = \"$(echo ${fallback_image} | sed s'|/boot/||')\"" >> "$conf"
- # Done
- echo "Thus configured"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement