1 2 3 4 5 6 7 8 9
#!/bin/sh if [ "$1" = "add" ]; then /etc/kernel/postinst.d/dkms "$2" fi if [ "$1" = "remove" ]; then /etc/kernel/prerm.d/dkms "$2" fi