iso-profiles/oem/asus-rog-ally-oem-kde/desktop-overlay/usr/bin/manjaro-post-install
2023-08-16 09:17:54 +02:00

38 lines
874 B
Bash
Executable file

#!/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