1 2 3 4 5 6 7
#!/bin/sh if [ "${1}" = remove ]; then while read link name prio; do update-alternatives --remove "${name}" "${link}.busybox" done </usr/share/busybox/alternatives fi