1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh first=true for arg in "${@}"; do if ${first}; then set -- first=false fi set -- "${@}" -a "${arg}" done run-parts "${@}" /etc/kernel/preinst.d