iso-profiles/oem/asus-rog-ally-oem-kde/live-overlay/usr/bin/manjaro-post-install

39 lines
874 B
Text
Raw Normal View History

2023-08-15 12:36:10 +02:00
#!/bin/sh
# This is the post install script for ROG ALLY devices!
# Expand the filesystem
resize-fs
# Set chassis
hostnamectl set-chassis handset
# Update appstream DB
[[ -e /usr/bin/appstreamcli ]] && /usr/bin/appstreamcli refresh-cache --force
# Set locales
localectl set-locale "en_US.UTF-8"
# Disable this service, so it only gets run on first boot
systemctl disable manjaro-post-install.service
# Enable HandyGCCS
if [[ -e /usr/lib/systemd/system/handycon.service ]]; then
udevadm control -R
systemctl enable --now handycon
fi
# Start sddm
[[ -e /usr/bin/sddm ]] && systemctl enable --now sddm
# Add ACPI Override (this might need a reboot to work)
[[ -e /usr/bin/update_rogaao ]] && /usr/bin/update_rogaao
# Pacman Init
if [[ -e pacman-key ]]; then
pacman-key --init
pacman-key --populate archlinux manjaro
fi
# Disable the root login
passwd --lock root