3 # Depmod output may be hard to diff.
4 # This script sorts dependencies within "xx.ko: yy.ko zz.ko" lines,
5 # and sorts all lines too.
8 # [./busybox] depmod -n | ./depmod_process.sh | sort >OUTFILE
10 # and then you can diff OUTFILEs. Useful for comparing bbox depmod
11 # with module-init-tools depmod and such.
13 while read -r word rest
; do
14 if ! test "${word/*:/}"; then
16 echo "$rest" |
xargs -n1 |
sort |
xargs