File: netselect.postinst

package info (click to toggle)
netselect 0.3.ds1-30.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 340 kB
  • sloc: ansic: 1,082; sh: 629; makefile: 43
file content (18 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

. /usr/share/debconf/confmodule
db_get netselect/install-setuid

if [ -x /usr/bin/netselect -a "$RET" = "false" ] ; then
    if ! dpkg-statoverride --list /usr/bin/netselect >/dev/null; then
        chown root:root /usr/bin/netselect
        chmod u=rwx,go=rx /usr/bin/netselect
    fi
else
    if ! dpkg-statoverride --list /usr/bin/netselect >/dev/null; then
        chown root:root /usr/bin/netselect
        chmod u=rwxs,go=rx /usr/bin/netselect
    fi
fi

#DEBHELPER#