linuxOS_AP05/debian/test/usr/lib/pm-utils/sleep.d/50unload_alx
2025-09-26 09:40:02 +08:00

19 lines
316 B
Bash
Executable File

#!/bin/sh
# 50unload_alx: unload the alx module during suspend (LP #1173952)
[ -d /sys/module/alx ] || exit 0
. "${PM_FUNCTIONS}"
case "$1" in
suspend)
echo "Unloading alx kernel module ..."
modunload alx && echo Done. || echo Failed.
;;
resume)
echo "Reloading alx kernel module ..."
;;
esac
exit 0