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