1 2 3 4 5 6 7 8 9
#!/bin/bash while read -r f; do if [[ -e ${f}vmlinuz ]]; then depmod $(basename "$f") fi done # vim:set ft=sh sw=2 et: