mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-08-28 04:46:27 -04:00
Added pacman hook to disable ModemManager DBUS service after upgrade
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user