mirror of the now-defunct rocklinux.org
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.

59 lines
2.1 KiB

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