File: pptpd.postinst

package info (click to toggle)
pptpd 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,184 kB
  • sloc: ansic: 4,958; sh: 913; makefile: 101; perl: 87
file content (22 lines) | stat: -rw-r--r-- 491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

case "$1" in
    configure)
        # load the module configured in /etc/modules-load.d/pptpd.conf
        if [ -d /run/systemd/system ]; then
            deb-systemd-invoke restart systemd-modules-load.service
        else
            modprobe nf_nat_pptp 2>/dev/null || true
        fi
        ;;
    abort-upgrade | abort-remove | abort-deconfigure) ;;
    *)
        echo "postinst called with unknown argument '$1'"
        exit 1
        ;;
esac

#DEBHELPER#
exit 0