Annotation of /tags/mkinitrd-6_2_0/modutils/depmod_process.sh
Parent Directory | Revision Log
Revision 984 -
(hide annotations)
(download)
(as text)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
Original Path: trunk/mkinitrd-magellan/busybox/modutils/depmod_process.sh
File MIME type: application/x-sh
File size: 491 byte(s)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
Original Path: trunk/mkinitrd-magellan/busybox/modutils/depmod_process.sh
File MIME type: application/x-sh
File size: 491 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 | niro | 984 | #!/bin/sh |
2 | |||
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. | ||
6 | # Usage: | ||
7 | # | ||
8 | # [./busybox] depmod -n | ./depmod_process.sh | sort >OUTFILE | ||
9 | # | ||
10 | # and then you can diff OUTFILEs. Useful for comparing bbox depmod | ||
11 | # with module-init-tools depmod and such. | ||
12 | |||
13 | while read -r word rest; do | ||
14 | if ! test "${word/*:/}"; then | ||
15 | echo -n "$word " | ||
16 | echo "$rest" | xargs -n1 | sort | xargs | ||
17 | else | ||
18 | echo "$word $rest"; | ||
19 | fi | ||
20 | done |
Properties
Name | Value |
---|---|
svn:executable | * |
svn:keywords | Id |