Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
Nico Schottelius 2017-07-19 17:15:41 +02:00
commit df2daf524d
641 changed files with 140617 additions and 12 deletions

18
remove-links Normal file
View file

@ -0,0 +1,18 @@
if [ -z "$1" ]; then
echo noe
exit 1
fi
for dirs in bin sbin lib include share; do
cd "$1/$dirs"
for file in *; do
if [ -L /usr/$dirs/"$file" ]; then
echo removing link $file
rm /usr/$dirs/"$file"
elif [ -d /usr/$dirs/"$file" ]; then
rmdir /usr/$dirs/"$file"
else
echo /usr/$dirs/"$file" is not a link...
fi
done
done