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

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