Added pacman hook to disable ModemManager DBUS service after upgrade

This commit is contained in:
rwinkhart
2022-06-29 02:58:39 -04:00
parent 31c2f0bc9e
commit 8475e45ef6
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -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
+11
View File
@@ -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'