For what it’s worth, I haven’t tried using the rc.d method, but this method worked for me - so if the former doesn’t work or won’t persist after a reboot, maybe try the solution linked below? (The systemd method)
https://discussion.fedoraproject.org/t/hardware-lid-activates-airplane-mode/77925