OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

  1. #!/bin/sh
  2. #
  3. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. #
  6. # T2 SDE: package/.../t2-debug/test_rootfsbin.sh
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. # Copyright (C) 1998 - 2003 Clifford Wolf
  9. #
  10. # More information can be found in the files COPYING and README.
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; version 2 of the License. A copy of the
  15. # GNU General Public License can be found in the file COPYING.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. #
  18. # List binaries which should in in /bin and /sbin and are not there.
  19. #
  20. # Output format:
  21. # Bin-Name <Tab> Should-Be <Tab> { "Not Found" | Current-Location }
  22. bin_fhs='cat chgrp chmod chown cp date dd df dmesg echo ed false
  23. kill ln login ls mkdir mknod more mount mv ps pwd rm rmdir
  24. sed setserial sh stty su sync true umount uname
  25. tar gzip gunzip zcat cpio domainname hostname netstat ping
  26. sleep bzip2 bunzip2 bzcat'
  27. bin_rock='bash sleep sync sort xargs grep cut skill snice find'
  28. sbin_fhs='clock getty init update mkswap swapon swapoff telinit
  29. fastboot fasthalt halt reboot shutdown ifconfig route
  30. fdisk fsck fsck.ext2 fsck.ext3 mkfs mkfs.ext2 badblocks dumpe2fs
  31. e2fsck mke2fs mklost+found tune2fs lilo ctrlaltdel kbdrate'
  32. sbin_rock='devfsd'
  33. for mode in bin sbin ; do
  34. for bin in `eval "echo \\$${mode}_fhs \\$${mode}_rock"` ; do
  35. found_dir=""
  36. for dir in {,/usr,/usr/local}/{,s}bin /usr/{local/,}games ; do
  37. [ -f $dir/$bin ] && found_dir=$dir
  38. done
  39. if [ -z "$found_dir" ] ; then
  40. echo -e "$bin\t/$mode\tNot Found"
  41. elif [ "$found_dir" != "/$mode" ] ; then
  42. echo -e "$bin\t/$mode\t$found_dir"
  43. fi
  44. done
  45. done
  46. exit 0