90-update-alternatives: check for available alternatives before setting them.
authorMichael Prokop <mika@grml.org>
Thu, 18 Aug 2011 16:10:09 +0000 (18:10 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 18 Aug 2011 16:26:31 +0000 (18:26 +0200)
commite4cf0358a216b41108c7a3e055111a3bb517d92e
treefc962c85c663426fc88cf931131bdff7a55852e9
parentea03835750c91747ecc6bc1c41c427428ef2f9f0
90-update-alternatives: check for available alternatives before setting them.

The binaries aren't necessarily available for update-alternatives even
though the binary themselves are present. Therefore execute
update-alternatives using the --list option and check whether the
preferred binary is available before setting it.
etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives