diff --git a/chrootInstall.sh b/chrootInstall.sh index 57d15a9..c1ea772 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -73,6 +73,7 @@ chown "$username":"$users" /home/"$username"/.bashrc curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/"$device"pacman.conf -o /etc/pacman.conf mkdir -p /etc/pacman.d/hooks curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/paccache-clean-hook -o /etc/pacman.d/hooks/paccache-clean.hook +curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/modemmanager-hook -o /etc/pacman.d/hooks/modemmanager.hook if [ "$gpu" == 'NVIDIA' ]; then curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/nvidia-hook -o /etc/pacman.d/hooks/nvidia.hook fi diff --git a/config-files/modemmanager-hook b/config-files/modemmanager-hook new file mode 100644 index 0000000..d4b0bca --- /dev/null +++ b/config-files/modemmanager-hook @@ -0,0 +1,11 @@ +[Trigger] +Operation=Install +Operation=Upgrade +Type=Package +Target=modemmanager + +[Action] +Description=Re-disable ModemManager DBUS service after upgrade. +When=PostTransaction +NeedsTargets +Exec=/bin/sh -c 'echo -e "[D-BUS Service]\nName=org.freedesktop.ModemManager1\nExec=/bin/false\nUser=root\nSystemdService=dbus-org.freedesktop.ModemManager1.service" > /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service'