File: etherwake.postinst

package info (click to toggle)
etherwake 1.09-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: ansic: 1,474; makefile: 12; sh: 6
file content (11 lines) | stat: -rwxr-xr-x 193 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

if [ "$1" = configure ]; then
    if command -v setcap > /dev/null; then
        setcap cap_net_raw+ep "$(dpkg-divert --truename /usr/sbin/etherwake)"
    fi
fi

#DEBHELPER#