File: netselect.postinst

package info (click to toggle)
netselect 0.3.ds1-14%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 264 kB
  • ctags: 229
  • sloc: ansic: 935; sh: 187; makefile: 90
file content (20 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

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

if [ -x /usr/bin/netselect -a "$RET" = "false" ] ; then
    if [ -x /usr/sbin/dpkg-statoverride ] && \
        ! /usr/sbin/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 [ -x /usr/sbin/dpkg-statoverride ] && \
        ! /usr/sbin/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#