Here's some code for the second idea - run it from ltsp-trunk. And of course the "echo" needs to be removed if it goes in the packaging:
find . -type l -printf '%p,%l\n' | while { IFS=, read symlink target; }; do if [ $(stat -c %i "${symlink%/*}/${target%/*}") -eq $(stat -c %i common) ]; then echo cp "common/${target##*/}" "$symlink" fi done
Here's some code for the second idea - run it from ltsp-trunk.
And of course the "echo" needs to be removed if it goes in the packaging:
find . -type l -printf '%p,%l\n' | /*}/${target% /*}") -eq $(stat -c %i common) ]; then ${target# #*/}" "$symlink"
while { IFS=, read symlink target; }; do
if [ $(stat -c %i "${symlink%
echo cp "common/
fi
done