Comment 3 for bug 975769

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

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