jobcore/kmod/depmod.script

14 lines
350 B
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/bin/bash
while read -r f; do
2022-04-05 21:49:25 +02:00
if [[ -e ${f}modules.order ]]; then
2022-03-20 13:19:37 +01:00
depmod $(basename "$f")
2022-04-05 21:49:25 +02:00
elif [[ -d $f ]]; then
rm -f "${f}"modules.{alias,alias.bin,builtin.alias.bin,builtin.bin} \
"${f}"modules.{dep,dep.bin,devname,softdep,symbols,symbols.bin}
rmdir --ignore-fail-on-non-empty "$f"
2022-03-20 13:19:37 +01:00
fi
done
# vim:set ft=sh sw=2 et: