File: postinst

package info (click to toggle)
pppconfig 2.0.14
  • links: PTS
  • area: main
  • in suites: woody
  • size: 160 kB
  • ctags: 77
  • sloc: perl: 1,517; sh: 82; makefile: 43
file content (20 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Postinst for pppconfig by John Hasler Wed June 30 1999.  
# You may treat this program as if it was in the public domain.

set -e

if [ -x /usr/bin/update-menus ] ; then
    /usr/bin/update-menus
fi
update-rc.d dns-clean start 39 S . >/dev/null

if [ "$1" = "configure" ]; then
    if [ -d /usr/doc -a ! -e /usr/doc/pppconfig \
       -a -d /usr/share/doc/pppconfig ]; then
       ln -sf ../share/doc/pppconfig /usr/doc/pppconfig
    fi
fi 

exit 0