summarylogtreecommitdiffstats
path: root/99-remove_links
blob: cbabd1cdb23de0f9c145c83947c7aa9724e61f7c (plain)
1
[ "$DEVNAME" ] && find /dev -type l -exec sh -c 'for i in "$@"; do [ "$0" = "$(realpath -- "$i")" ] && rm -f -- "$i"; done' "/dev/$DEVNAME" {} +