init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
parent
256dc98754
commit
df2daf524d
641 changed files with 140617 additions and 12 deletions
29
clear-link-dirs
Normal file
29
clear-link-dirs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
check_file()
|
||||
{
|
||||
if [ ! -h "$1" ]; then
|
||||
echo "$1" is not a link\! Please FIXME\!
|
||||
if [ ! -e "$1" ]; then
|
||||
echo "$1" is broken. removing.
|
||||
#rm "$1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
for a in /usr/bin/* ; do
|
||||
check_file "$a"
|
||||
done
|
||||
|
||||
for a in /usr/lib/* ; do
|
||||
check_file "$a"
|
||||
done
|
||||
|
||||
for a in /usr/sbin/*; do
|
||||
check_file "$a"
|
||||
done
|
||||
|
||||
for a in /usr/include/*; do
|
||||
check_file "$a"
|
||||
done
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue