4 # Source debconf library.
5 if [ -e /usr/share/debconf/confmodule ]; then
6 . /usr/share/debconf/confmodule
9 if [ "$1" != configure ]; then
14 if [ -e /usr/share/debconf/confmodule ]; then
15 db_get beep/suid_option
19 # repair typo in option (see #135866)
20 if [ "$suid" = "suid root with only group audio executeable" ] ; then
21 db_set beep/suid_option "suid root with only group audio executable"
22 suid="suid root with only group audio executable"
25 # option changes as suggested by #492724
26 if [ "$suid" = "suid root for all" ] ; then
27 db_set beep/suid_option "usable for all"
30 if [ "$suid" = "suid root with only group audio executable" ] ; then
31 db_set beep/suid_option "usable for group audio"
32 suid="usable for group audio"
34 if [ "$suid" = "not suid at all" ] ; then
35 db_set beep/suid_option "usable only for root"
36 suid="usable only for root"
40 if [ -x /usr/sbin/dpkg-statoverride ] ; then
41 if ! dpkg-statoverride --list /usr/bin/beep >/dev/null ; then
42 if [ "$suid" = "usable for all" ] ; then
43 chmod 4755 /usr/bin/beep
44 elif [ "$suid" = "usable for group audio" ] ; then
45 chmod 4754 /usr/bin/beep
46 elif [ "$suid" = "usable only for root" ] ; then
47 chmod 0755 /usr/bin/beep
51 if [ "$suid" = "usable for all" ] ; then
52 chmod 4755 /usr/bin/beep
53 elif [ "$suid" = "usable for group audio" ] ; then
54 chmod 4754 /usr/bin/beep
55 elif [ "$suid" = "usable only for root" ] ; then
56 chmod 0755 /usr/bin/beep