diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-11-09 23:28:04 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-11-09 23:28:04 (EST) |
commit | e6f6c8611500e0e75d831d6ba3a397124d131bf4 (patch) | |
tree | 85bfe95d91c038ff107588f1f96dd2e7df1edde2 /linux-image.pkg/prerm | |
parent | 432a922643eda8d61333738687c5463376f2d877 (diff) |
linux-image: Run prerm hooks
Diffstat (limited to 'linux-image.pkg/prerm')
-rw-r--r-- | linux-image.pkg/prerm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-image.pkg/prerm b/linux-image.pkg/prerm new file mode 100644 index 0000000..7bc5761 --- /dev/null +++ b/linux-image.pkg/prerm @@ -0,0 +1,12 @@ +#!/bin/sh + +first=true +for arg in "${@}"; do + if ${first}; then + set -- + first=false + fi + set -- "${@}" -a "${arg}" +done + +run-parts "${@}" /etc/kernel/prerm.d |