11 lines
184 B

#!/bin/sh
[ "$ACTION" = remove ] && action='-r -a'
. /etc/init.d/globals
for module in "$@"; do
modprobe $action $module &&
LOGINFO "${ACTION:-scan} module $module succeed"
done