You can create a systemd service. For example,
Service file:
[mbb@mbb-laptop ~]$ cat /etc/systemd/system/wakeup-events.service
[Unit]
Description=Disable wakeup events on startup
[Service]
Type=oneshot
ExecStart=/bin/bash /home/mbb/.bin/wakeup-events.sh
[Install]
WantedBy=multi-user.target
Script file:
[mbb@mbb-laptop ~]$ cat /home/mbb/.bin/wakeup-events.sh
#!/bin/bash
# Disable wakeup events
echo LANC > /proc/acpi/wakeup
echo EHC1 > /proc/acpi/wakeup
echo EHC2 > /proc/acpi/wakeup
echo " XHC" > /proc/acpi/wakeup
Then activate the service with sudo systemctl enable --now wakeup-events
Note that, if the state of wakeup events is already as you want in the session where you enable the service, you should omit --now, otherwise the script will revert the event states (for that session only).