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

39 lines
875 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
2023-08-16 23:00:41 +02:00
#resize-fs
2023-08-15 12:36:10 +02:00
# 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