1 2 3 4 5 6 7 8
#!/bin/sh for link in /usr/bin/*; do if [ -L "$link" ] && [ "$(readlink $link)" = "/usr/bin/entrykit" ]; then echo "removing $link" rm "$link" fi done