Why not simply removing that check: # kernel-package passes an extra arg; hack to not run under kernel-package [ -z "$2" ] || exit 0 Or are there any reasons (I don't see) why the scripts won't work with kernel-package. One could add a conflict to a too old kernel-package if necessary. Cheers, Chris.