3 # copyright 2002-2009 by Gerfried Fuchs <rhonda@debian.at>
4 # Licenced under BSD style
6 # Source debconf library.
7 if [ -e /usr/share/debconf/confmodule ]; then
8 . /usr/share/debconf/confmodule
11 if [ "$1" != configure ]; then
16 if [ -e /usr/share/debconf/confmodule ]; then
17 db_get beep/suid_option
21 # option changes as suggested by #492724
22 if [ "$suid" = "suid root for all" ] ; then
23 db_set beep/suid_option "usable for all"
26 if [ "$suid" = "suid root with only group audio executable" ] ; then
27 db_set beep/suid_option "usable for group audio"
28 suid="usable for group audio"
30 if [ "$suid" = "not suid at all" ] ; then
31 db_set beep/suid_option "usable only for root"
32 suid="usable only for root"
36 if [ -x /usr/sbin/dpkg-statoverride ] ; then
37 if ! dpkg-statoverride --list /usr/bin/beep >/dev/null ; then
38 if [ "$suid" = "usable for all" ] ; then
39 chmod 4755 /usr/bin/beep
40 elif [ "$suid" = "usable for group audio" ] ; then
41 chmod 4754 /usr/bin/beep
42 elif [ "$suid" = "usable only for root" ] ; then
43 chmod 0755 /usr/bin/beep
47 if [ "$suid" = "usable for all" ] ; then
48 chmod 4755 /usr/bin/beep
49 elif [ "$suid" = "usable for group audio" ] ; then
50 chmod 4754 /usr/bin/beep
51 elif [ "$suid" = "usable only for root" ] ; then
52 chmod 0755 /usr/bin/beep