File: powerdevil.postinst.in

package info (click to toggle)
powerdevil 4%3A6.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 10,672 kB
  • sloc: cpp: 13,284; xml: 1,911; python: 1,204; sh: 19; makefile: 10
file content (18 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [ "$1" = configure ]; then
    # Set the capabilities
    if command -v setcap > /dev/null && \
       setcap "CAP_WAKE_ALARM=+ep" \
            "/usr/lib/#DEB_HOST_MULTIARCH#/libexec/org_kde_powerdevil"; then
        echo "Sucessfully set capabilities for powerdevil"
    else
        echo "Failed to set capabilities for powerdevil" >&2
    fi
fi

#DEBHELPER#

exit 0