blob: 50012888672dcf2e07bbc077e47d57b1573b0045 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
set -e
case "$1" in
upgrade)
;;
remove|deconfigure)
update-alternatives --quiet --remove sh /bin/bash
dpkg-divert --quiet --remove /bin/sh
if [ ! -e /bin/sh ]; then
echo There would be no shell!
ln -s bash /bin/sh
exit 1
fi
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
|